geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste <>
Subject Classloader issue
Date Tue, 01 Apr 2008 01:59:29 GMT


I have decided to <upgrade> from a good old plain Web Container (Tomcat) to
Geronimo and I’m having issues with the way the classloader for my WebApp
loads the classes…

Under Tomcat the classloader would look for classes in this order (resource:

*	Bootstrap classes of your JVM
*	System class loader classses (described above)
*	/WEB-INF/classes of your web application
*	/WEB-INF/lib/*.jar of your web application
*	$CATALINA_HOME/lib/*.jar

Now with Geronimo 2.0.1 (the version I use, have not tried another version)
and Tomcat (6.0) it seems that this order is NOT respected. The classes
defined in my *.jar in under WEB-INF/lib always takes precedence over the
ones in WEB-INF/classes


I have created a simple WAR file with one jar under WEB-INF/lib that
contains a class. I then defined the same class under WEB-INF/classes and I
can see that it is always the class defined into the jar that is used at run


Is this a normal behavior for Tomcat under Geronimo? Am I doing something
wrong ? 





No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date: 30/03/2008
12:32 PM

View raw message