tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <qm...@brandxdev.net>
Subject Re: Modify class path using catalina (Windows tomcat 5.5.2 version)
Date Tue, 28 Sep 2004 12:38:29 GMT
On Tue, Sep 28, 2004 at 08:36:39AM +0200, Xavier Frisaye wrote:
: I need to add a directory to class path of Tomcat and i'm using catalina.bat
: to launch it.
: Is there a way to do this without modifying original .bat of tomcat release?

The safest, most portable[1] way to add to a classpath is to wrap your
data in a JAR and place that in one of:

	{context}/WEB-INF/lib
	{tomcat install}/common/lib
	{tomcat install}/shared/lib

JARs in these directories are picked up automagically by Tomcat, so
there's no need to alter a file.

Refer to the Tomcat classloader doc to decide where to put the JAR.
(Hint: most likely, under {context}/WEB-INF/lib).

-QM

[1] = "portable" between different versions of Tomcat, as well as
between different (spec-compliant) containers.

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message