> From: Vasiliy Keretsman [mailto:[EMAIL PROTECTED] 
> Subject: Re: java.lang.NoClassDefFoundError: 
> javax/servlet/ServletContextListener
> 
> I manually added servlet-api.jar to CLASSPATH at first and Tomcat
> started without errors.

You've got something else going on.  Tomcat completely ignores any
existing CLASSPATH setting and establishes its own; the system
classloader is used only for bin/bootstrap.jar.

> Afterwards i've just compared setclasspath.sh in both 5.0 and 5.5.

They are different because 5.0 used the javac classes from tools.jar
whereas 5.5 includes its own Java compiler.  That's why 5.0 required a
JDK and 5.5 needs only a JRE.

You might want to run with -verbose:class just to see where classes are
really being loaded from.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to