wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat NoClassDefFound error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat NoClassDefFound error" Watch "Tomcat NoClassDefFound error" New topic
Author

Tomcat NoClassDefFound error

Robyn Lynn
Greenhorn

Joined: Jan 10, 2005
Posts: 7
I have a newbie question. I compiled and deployed my app to Tomcat 4.1, and where I am referencing a class from another class, I am getting a NoClassDefFound error. My application is in the webapps directory, and I have checked the packages and classnames several times (and the complier is happy.) In fact, I moved the 'missing' class to the same package and also imported it and it still won't find it. What could I be missing?

Thanks

2005-01-13 09:09:48 HttpProcessor[8080][4] process.invoke
java.lang.NoClassDefFoundError: com/drc/timeReporting/servlets/auth/TimePrincipal
at com.drc.timeReporting.servlets.auth.TimeJAASRealm.hasRole(TimeJAASRealm.java:252)
at org.apache.catalina.authenticator.AuthenticatorBase.accessControl(AuthenticatorBase.java:632)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:539)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1040)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1151)
at java.lang.Thread.run(Thread.java:534)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Where are you putting the classes?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Tomcat NoClassDefFound error
 
Similar Threads
java.lang. NoClassDefFoundError
Problem in declaring a bean in JSP page
intermittent nullpointer using response.encodeURL error anyone know how to solve it
Error trying to send mail. class definition problem?
Servlet crash every morning, was working ok before I went to sleep