hi!
> 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.
Sorry, forgot to
> 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
That makes no sense at all, since there are no javax.* classes in
tools.jar. The only thing that Tomcat might use out of tools.jar is the
javac classes, and then only if you configure it to use javac instead of
the default compiler.
I know it looks strange.
I manually added servlet-api.jar to C
> From: Vasiliy Keretsman [mailto:[EMAIL PROTECTED]
> Subject: Re: java.lang.NoClassDefFoundError:
> javax/servlet/ServletContextListener
>
> Linux version of catalina/bin/setclasspath.sh in 5.5.15,17,20 hides
> the following classpath setting under condition. With tools.jar
Hi!
The problem was solved.
Linux version of catalina/bin/setclasspath.sh in 5.5.15,17,20 hides
the following classpath setting under condition. With tools.jar in
classpath it works.
if [ "$1" = "debug" -o "$1" = "javac" ] ; then
CLASSPATH="$JAVA_HOME"/lib/tools.jar
fi
Btw, setclasspath.bat d
Martin, Chuck
Thanks for reply.
1. servlet-api.jat is only in tomcat/common/lib
2. cut from web.xml
Can we see the web.xml listener element configuration for
ServletContextListener and any listener's deriving from ServletContextListener
org.springframework.web.context.ContextLoa
Vasily-
Can we see the web.xml listener element configuration for
ServletContextListener and any listener's deriving from ServletContextListener
have you verified your $CATALINA_HOME/commons/lib/servlet-api.jar is the same
as the OS specific distro jar?
Anyone else?
M-
This e-mail communication
> From: Vasiliy Keretsman [mailto:[EMAIL PROTECTED]
> Subject: java.lang.NoClassDefFoundError:
> javax/servlet/ServletContextListener
>
> - Error configuring application listener of class
> myapp.util.WebApplicationContextSupport
> java.lang.NoClassDefFoundError: javax/servlet/ServletContextList