Andrew Haley wrote: > Tom Tromey writes: > > >>>>> "Gary" == Gary Benson <gbenson@xxxxxxxxxx> writes: > > > > Gary> I wonder if this is what was not happening in gcj. The > > Gary> patch I wrote basically added the contents of > > Gary> java.endorsed.dirs to one of JOnAS's many classloaders. > > > > We implemented endorsed dirs specifically for jonas -- as I recall > > this was needed not only for jacorb but also for loading > > xerces/xalan. My recollection is that with the FC5 gcc (aka 4.1) > > we didn't need any special jonas hacks in this area... if I'm > > wrong, I'd like to know so we can fix it :-) > > OK, but I had to unload jonas and all its deps to build jboss. > > If gary can tell me exactly which classpath hack he's talking about > I'll try to remove it. But I'll have to remove all the jboss stuff > first, becasue it's an incompatible set of packages. Sigh. jonas-classpath.patch fixes two class loading issues which might be separate but might be the same thing. The attached patch is without the endorsed hack, so replacing jonas-classpath.patch in the rpm with this one should expose whatever error it fixed. Cheers, Gary
The endorsed directories and the bootstrap jarfile don't seem to end up on the classpath, despite all of JOnAS seemingly assuming they are. --- jonas/src/org/objectweb/jonas/server/LoaderManager.java~ 2004-08-04 11:03:14.000000000 +0100 +++ jonas/src/org/objectweb/jonas/server/LoaderManager.java 2005-06-23 11:28:09.000000000 +0100 @@ -366,6 +366,10 @@ // Load $JONAS_ROOT/lib/commons/**/*.jar jurls.add(jonasCommonsDir, ".jar"); + // pick up bootstrap classes if running under libgcj + if (System.getProperty("java.vm.name").equals("GNU libgcj")) + jurls.add(new File(jonasLib, "common/ow_jonas_bootstrap.jar")); + // add jonas.base/lib/ext only if jonas.base != jonas.root // jonas.base/lib/ext is added before jonas.root/lib/ext if (!System.getProperty("install.root").toLowerCase().equals(jonasBase.toLowerCase())) { --- jonas_tests/conformance/build.xml~ 2005-10-13 17:07:00.000000000 +0100 +++ jonas_tests/conformance/build.xml 2005-10-14 17:29:22.000000000 +0100 @@ -111,6 +111,7 @@ <pathelement location="${rajar.dir}/JtestResourceAdapter.jar" /> <fileset dir="${lib.dir}"> <include name="client.jar" /> + <include name="common/ow_jonas_bootstrap.jar" /> </fileset> </path> <available file="${rajar.dir}/JtestResourceAdapter.jar"