tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: questions on tomcat cluster
Date Mon, 10 Aug 2009 15:10:42 GMT
> From: jingtian.seu217@gmail.com [mailto:jingtian.seu217@gmail.com]
> On Behalf Of TianJing
> Subject: Re: questions on tomcat cluster
> 
> my $CLASSPATH include the lib and the jre/lib

You must never, under any circumstances, include jre/lib in your classpath - the JVM takes
care of that.

You also should never use the CLASSPATH environment variable - a bad idea from the start of
Java that causes no end of grief these days.  On the rare occasion that you must specify additional
library files for Tomcat's use, use the command line -cp parameter.  Library files for a webapp's
use should be placed in the webapp's WEB-INF/lib directory.

What do you mean by "lib" in your statement above?  If it's the lib directory that comes with
a JDK, you should not include that in your classpath either.  If it's Tomcat's lib directory,
that certainly must never be specified in the general classpath, since Tomcat has its own
classloader for that directory.

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

Mime
View raw message