> From: Jonathan Ross [mailto:jonr...@alum.mit.edu]
> Subject: RE: Seeking authoritative answer re using Log4J with v6
> 
> According to the
> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
> classloader howto , the order is: system classloader, webapp
> classloader, common classloader.

The code does not match the doc, nor observed behavior.  The WebappClassLoader 
does have a delegate field that can be used to force a search via the parent 
and system classloaders before WEB-INF/lib and WEB-INF/classes, but the value 
of that field is normally false.  It can be set by the delegate attribute of a 
<Loader> element nested inside a <Context> element, but it's unlikely you're 
doing that.  When delegate is false (the default), the WEB-INF directories are 
searched before system or common.

The WebappClassLoader also has a provision for forcing delegation for certain 
packages, but that package list is empty in the current implementation.  It 
could be filled in by a subclass (but there are none in Tomcat).

All of the above is based on 6.0.20.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to