Problem with ServletContextAttributeListener
843841May 4 2007 — edited Feb 29 2008Hello
I get a NoClassefFoundError when starting a servlet.
The web.xml contains the following lines
<listener>
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
</listener>
Then, when the application starts in Tomcat, I get
4/05/2007 14:08:37 org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.NoClassDefFoundError: javax/servlet/ServletContextAttributeListener
at java.lang.ClassLoader.findBootstrapClass(Native Method)
at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
...
I have servlet.jar in the CLASSPATH
servlet.jar contains the class ServletContextAttributeListener
It is located in the tomcat/common/lib directory
My configuration:
Apache Tomcat/5.5.17
JVM 1.6.0-b105
OS Linux, version 2.6.15-28-386
Is someone able to help me?
Jean-Claude