. But it didn't help either
[Loaded org.apache.log4j.spi.NullWriter from
file:/home/vasya/prj/trunk/WEB-INF/lib/jakarta-log4j.jar]
- Error configuring application listener of class
enCode.util.spring.WebApplicationContextSupport
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
Hi!
I've got the following problem during Tomcat 5.5.20 startup
- Error configuring application listener of class
myapp.util.WebApplicationContextSupport
java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
servlet-api.jar is in common/lib.
I've never had such problem
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/ServletContextListener
,
distribution or copying of it or its
contents
- Original Message -
From: Vasiliy Keretsman [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Wednesday, November 08, 2006 9:56 AM
Subject: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
Hi!
I've got the following
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
listener
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 does not
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 in
classpath it works
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
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