geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste <Jean-Baptiste.Lapl...@montrealboutique.com>
Subject RE: Classloader issue
Date Tue, 01 Apr 2008 17:17:28 GMT
This is fixed in 2.1, haven’t tried 2.0.2.

 

Regards

 

JB

 

   _____  

From: Jean-Baptiste [mailto:Jean-Baptiste.Laplace@montrealboutique.com] 
Sent: March 31, 2008 9:59 PM
To: 'user@geronimo.apache.org'
Subject: Classloader issue

 

Hello,

 

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:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html)

*	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
*	$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
time.

 

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

 

Regards,

 

Jean-Baptiste


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



No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.2/1353 - Release Date: 31/03/2008
6:21 PM
 

Mime
View raw message