Tomcat fails to load jasper class [message #303607] |
Wed, 17 May 2006 22:32 |
Henrietta Slack Messages: 63 Registered: July 2009 |
Member |
|
|
Hi, I've been using the internal tomcat server quite successfully for a
while in Eclipse versions up to and including 32M4. I've upgraded to the
latest release candidates but I now get an error; basically tomcat can't
load a jasper class.
The plugin that connects to tomcat is called "org.myserver.webapp" and it
attaches a new context to the server when the plugin starts up, like so:
public void earlyStartup() {
try{
WebappManager.start("mypath", "org.myserver.webapp", new Path("mypath"));
}
catch ( CoreException e ) {
e.printStackTrace();
}
}
I define a servlet 'showThings_jsp' in web.xml in the normal way under the
plugin path and then I hope to get a result by pointing my browser at:
http://localhost:8080/mypath/showThings
But when I do, I just get an HTTP Status 500 report in the browser
("server encountered an internal error") and the following in the catalina
log:
StandardWrapperValve[org.myserver.webapp.jsp.showThings_jsp] : Allocate
exception for servlet org.myserver.webapp.jsp.showThings_jsp
at org.apache.catalina.core.StandardWrapper...StandardWrapper.j ava:672)
at org.apache.catalina.core....StandardWrapperValve.java:210)
at org.apache.catalina.core...$StandardPipelineValveContext..
<snipped>
----- Root Cause -----
java.lang.NoClassDefFoundError: org/apache/jasper/runtime/HttpJspBase
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader...
Thanks for any advice, or should I report this as a bug?
Henrietta
|
|
|
Powered by
FUDForum. Page generated in 0.03002 seconds