HI David,
I think the tomcat 6 basic classloader layout has not changed.
Look at Bootstrap.java:
private void initClassLoaders() {
try {
commonLoader = createClassLoader("common", null);
if( commonLoader == null ) {
// no config file, default to this loader - we might
be in a 'single' env.
commonLoader=this.getClass().getClassLoader();
}
catalinaLoader = createClassLoader("server", commonLoader);
sharedLoader = createClassLoader("shared", commonLoader);
} catch (Throwable t) {
log.error("Class loader creation threw exception", t);
System.exit(1);
}
}
You can configure with the ClassLoaders at conf/catalina.properties
common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar
server.loader=
shared.loader=${catalina.home}/shared/classes,${catalina.home}/shared/
lib/*.jar
Regards
Peter
Am 13.04.2007 um 00:46 schrieb David Blevins:
On Apr 12, 2007, at 6:58 AM, Filip Hanik - Dev Lists wrote:
David Blevins wrote:
Plugging into Tomcat 6 doesn't work yet as the classloader
structure changed just slightly. It'd likely be just a couple
day effort to get it in, but we're very busy trying to finish up
the EJB 3 work (we're really close). So if you really want it
please hop on the user or dev list and say so.
I don't think the classloader structure changed, it is still
defined in catalina.properties
On Apr 12, 2007, at 6:44 AM, Peter Rossbach wrote:
It is true the tomcat 6 default classloader layout has changed. At
the release bundle all class are
located at common Classloader. You can easly switch to the old
layout. Please edit the
file conf/catalina.properties and move some files arround :-)
Aha, it's just the default that's changed. Got it. I saw via a
debugger that there was no longer a "Shared" classloader than
immediately checked the neat little ascii diagram in the 6 docs and
concluded it was "gone."
Alright, I'll have to poke around via debugger and see if I can't
find a reliable way to locate the Common classloader regardless if
there is or isn't a Shared classloader in the mix. Any suggestions
are welcome. If we can get that going the integration with 6
should be in working condition with the default Tomcat 6 setup.
Thanks,
David
---------------------------------------------------------------------
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]