On Mon, Apr 27, 2009 at 10:59 AM, Caldarale, Charles R <chuck.caldar...@unisys.com> wrote: >> 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.
Why should I restart tomcat to change the config in this case? > I wouldn't put any class files in that directory, though. neither would I :-) > > 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. so its basically the same as the above, the only difference being that I'm modifying the classpath indirectly. So I'll probably stick with the first option and set the dir to be part of the classpath. Thanks! Leon > > - 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org