Running JOnAS 4.7.4 that uses 1.5 features

Gary Benson gbenson at redhat.com
Wed Aug 9 12:33:30 UTC 2006


Andrew Haley wrote:
> Gary Benson writes:
> > Robert Lougher wrote:
> > > On 8/9/06, Gary Benson <gbenson at redhat.com> wrote:
> > > > Audrius Meskauskas wrote:
> > > > > JOnAS also failed to load the JacORB CORBA implementation
> > > > > via our org.omg classes. Despite our ObjectCreator.forName
> > > > > searches the thread context class loader and then walks
> > > > > through the stack, trying the class loader of every class
> > > > > there, the jacorb.jar is still missing in the path of all
> > > > > tried loaders (I have checked with the .toString() method of
> > > > > our class loader - is lists all files in the path). I have
> > > > > no idea from where the JacORB classes should be loaded (the
> > > > > jacorb.jar itself is present in JOnAS distribution).
> > > > 
> > > > I think I hit something similar in the never-released Fedora
> > > > JOnAS: I had to write a little a hack to ram jacorb.jar onto
> > > > the classpath.  I suspect we're missing something in the way
> > > > we deal with endorsed classes.
> > > 
> > > Can you check JOnAS's startup scripts to see whether it is
> > > setting java.endorsed.dirs on the command line passed to the VM?
> > > If it is, the contents of the directory (or directories) should
> > > be added to the bootclasspath, and loaded via the boot loader.
> > 
> > I wonder if this is what was not happening in gcj.  The patch I
> > wrote basically added the contents of java.endorsed.dirs to one
> > of JOnAS's many classloaders.
>
> Mmm, but if I recall correctly that got fixed, and it was no longer
> necessary.

I don't know.  It was still necessary the last time I built JOnAS.
Do you have a working JOnAS build environment?  The hack is in
jonas-classpath.patch, though you can't remove the whole patch (it
does something else too).

Cheers,
Gary



More information about the Classpath mailing list