Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 79488 invoked from network); 1 Apr 2008 01:59:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2008 01:59:55 -0000 Received: (qmail 55297 invoked by uid 500); 1 Apr 2008 01:59:49 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 55272 invoked by uid 500); 1 Apr 2008 01:59:49 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 55261 invoked by uid 99); 1 Apr 2008 01:59:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Mar 2008 18:59:49 -0700 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 24.201.245.36 is neither permitted nor denied by domain of Jean-Baptiste.Laplace@montrealboutique.com) Received: from [24.201.245.36] (HELO relais.videotron.ca) (24.201.245.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 01:59:08 +0000 MIME-version: 1.0 Content-type: multipart/alternative; boundary="Boundary_(ID_a9+FLIJaKi+iKq2QtW387w)" Received: from jbldesktop ([24.202.173.238]) by VL-MH-MR002.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0JYM00HEVIUV8I22@VL-MH-MR002.ip.videotron.ca> for user@geronimo.apache.org; Mon, 31 Mar 2008 21:59:19 -0400 (EDT) From: Jean-Baptiste To: user@geronimo.apache.org Subject: Classloader issue Date: Mon, 31 Mar 2008 21:59:29 -0400 Message-id: <006901c8939c$056b2bb0$6401a8c0@jbldesktop> X-Mailer: Microsoft Office Outlook 11 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-index: AciTnAU5LnYhNntWQ0KELVT/NHAAsQ== X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --Boundary_(ID_a9+FLIJaKi+iKq2QtW387w) Content-type: text/plain; charset=windows-1250 Content-transfer-encoding: quoted-printable Hello, =20 I have decided to from a good old plain Web Container (Tomcat) = to Geronimo and I=92m having issues with the way the classloader for my = WebApp loads the classes=85 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 =20 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. =20 Is this a normal behavior for Tomcat under Geronimo? Am I doing = something wrong ?=20 =20 Regards, =20 Jean-Baptiste No virus found in this outgoing message. Checked by AVG.=20 Version: 7.5.519 / Virus Database: 269.22.1/1350 - Release Date: = 30/03/2008 12:32 PM =20 --Boundary_(ID_a9+FLIJaKi+iKq2QtW387w) Content-type: text/html; charset=windows-1250 Content-transfer-encoding: 7BIT

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

--Boundary_(ID_a9+FLIJaKi+iKq2QtW387w)--