> From: jingtian.seu...@gmail.com [mailto:jingtian.seu...@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.