You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jl...@tgen.org on 2008/01/24 03:59:03 UTC

java.lang.NoClassDefFoundError: javax/servlet/jsp/JspApplicationContext

Any feedback would be very appreciated.

I am getting an error with respect to the servlet listener, please see the following:

Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Apache Tomcat 6.0.14
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

Tomcat console:

WARNING: Couldn't initialize Jasper
java.lang.NoClassDefFoundError: javax/servlet/jsp/JspApplicationContext
        at org.apache.jasper.compiler.JspRuntimeContext.<clinit>(JspRuntimeContext.java:73)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.apache.catalina.core.JasperListener.lifecycleEvent(JasperListener.java:63)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:767)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:518)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)




---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: java.lang.NoClassDefFoundError: javax/servlet/jsp/JspApplicationContext

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: jluthera@tgen.org [mailto:jluthera@tgen.org] 
> Subject: java.lang.NoClassDefFoundError: 
> javax/servlet/jsp/JspApplicationContext

Did you put jsp-api.jar in your webapp's WEB-INF/lib directory?  You
shouldn't; none of the jars or classes therein that Tomcat supplies in
its lib directory may be present in a webapp's libraries.  Also, if
you've set the CLASSPATH environment variable, get rid of that;
CLASSPATH must not be used in conjunction with Tomcat.

 - 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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org