Hello Will,

The way webapps work with classloaders is opposite that of the normal
classloader precedence.  The WebappClassloader looks in its own
classloader for libraries first before looking at parent classloaders.
What normally happens is that the parent classloader is queried first
for libraries and if they don't exist there, then they are loaded from
those further down the hierarchy (closer to the current classloader).

As far as the order goes, here is the WebappClassloader order:

WEB-INF/classes
WEB-INF/lib

class files in the WEB-INF/classes dir are *always* loaded first.

See more here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

Jake

Friday, December 06, 2002, 12:30:25 PM, you wrote:

WH> Hi all, class loader question (aren't they all?)

WH> We're running against Weblogic, and Weblogic issues Service Packs which
WH> inevitably are simply jar files with updated classes.

WH> However, these jar files need to be specified BEFORE the regular weblogic
WH> jar files in the classpath.

WH> So, I'm curious as whether there is a determinate order that the files in
WH> WEB-INF/lib are placed on the classpath, and also whether lib is placed
WH> before WEB-INF/classes. (i.e. is it alphabetical or simply whatever order it
WH> shows up in an unsorted directory listing)

WH> I suppose the same question applies to the $CATALINA_HOME/shared directories
WH> as well.

WH> Thanx!

WH> Regards,

WH> Will Hartung
WH> ([EMAIL PROTECTED])




WH> --
WH> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
WH> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



-- 
Best regards,
 Jacob                            mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to