> From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com]
> Subject: adding files to classpath
> 
> Is there any other possibility to add something to the classpath
> without screwing up my tomcat installation completely? Something
> similar to common/endorsed prior to 6.x?

This is one of those rare instances where you actually could extend the Tomcat 
classpath with a reference to your config directory, as long as you don't mind 
sharing those resources across all your webapps and don't mind restarting 
Tomcat to change the config.  I wouldn't put any class files in that directory, 
though.

The common/endorsed directory still works, since that's handled by the JVM, not 
Tomcat.  The value is given to the JVM via the java.endorsed.dirs system 
property; the catalina.bat and catalina.sh scripts will set that property based 
on the contents of the JAVA_ENDORSED_DIRS environment variable.  If you set 
JAVA_ENDORSED_DIRS=$HOME/etc/config/ either before starting Tomcat or in 
setenv.sh, it should work, although again, this will be shared across all 
webapps.

 - 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