Tomcat 4 class loader precedence order?

2002-12-06 Thread Will Hartung
Hi all, class loader question (aren't they all?) We're running against Weblogic, and Weblogic issues Service Packs which inevitably are simply jar files with updated classes. However, these jar files need to be specified BEFORE the regular weblogic jar files in the classpath. So, I'm curious as

Re: Tomcat 4 class loader precedence order?

2002-12-06 Thread Jacob Kjome
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

Re: Tomcat 4 class loader precedence order?

2002-12-06 Thread micael
I had missed this. Thanks, Jacob. At 01:14 PM 12/6/2002 -0600, you wrote: 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.

RE: Tomcat 4 class loader precedence order?

2002-12-06 Thread Shapira, Yoav
Hi, Jacob's answer is right, but I don't know if it's a complete answer to your question. So, I'm curious as whether there is a determinate order that the files in WEB-INF/lib are placed on the classpath, and also whether lib is placed before WEB-INF/classes. (i.e. is it alphabetical or simply

Re: Tomcat 4 class loader precedence order?

2002-12-06 Thread Bill Barker
Jacob's answer is not strictly true: the order is only partially inverted. The actual order is: WEB-INF/classes WEB-INF/lib/*.jar System Loader (including $CATALINA_HOME/common/endorsed/*.jar) $CATALINA_HOME/common/classes $CATALINA_HOME/common/lib/*.jar $CATALINA_HOME/shared/classes