wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat 7-WAR file works on Windows but not on Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 7-WAR file works on Windows but not on Linux" Watch "Tomcat 7-WAR file works on Windows but not on Linux" New topic
Author

Tomcat 7-WAR file works on Windows but not on Linux

Santhosh Kumar P
Greenhorn

Joined: Jul 20, 2009
Posts: 4
Tomcat 7-WAR file works on Windows but not on Linux

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.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
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:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.JspApplicationContext
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

Check to see that your Tomcat lib directory contains jsp-api.jar and that the Tomcat user can read it.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 7-WAR file works on Windows but not on Linux
 
Similar Threads
tomcat 7 SSL Java Issues
Why jdk6x is not compatiable with Tomcat7? why jdk7x compiled classes are not working in jdk6x
Seeting Ant for deployment to tomcat using eclipse
SSL and APR native support not working together
java.net.BindException: Address already in use: JVM_Bind:8080