> From: uma...@comcast.net [mailto:uma...@comcast.net]
> Subject: Include directories outside WEB-INF/ in CLASSPATH?
> 
> I am using Tomcat 6.0.14.

You should move up, just on general principles - as well as for the bunch of 
fixes that have gone in over the last two years.

> Is there a way to include a directory outside WEB-INF/ into
> the classpath of the WebappClassLoader?

Yes, but it's not documented, so test it carefully.  You can nest a <Loader> 
element inside your <Context> that specifies an alternate classloader:
http://tomcat.apache.org/tomcat-6.0-doc/config/loader.html

Set the value of the className attribute to 
"org.apache.catalina.loader.VirtualWebappLoader".  Use the virtualClasspath 
attribute to specify a semicolon-separated list of the additional files or 
directories you want added to the WebappClassLoader classpath.

See this message for slightly more detail:
http://marc.info/?l=tomcat-user&m=119515455807928&w=2

 - 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.

Reply via email to