You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Dunkle, Ed" <Ed...@ameriserve.com> on 2000/05/02 02:20:33 UTC

RE: servlet can't find itself (base class problem?)

OK, I worked around this by not extending from my base class.  I had the
base class available, but not other classes that the base class contained...
Unfortunately, the stacktrace doesn't indicate the actual class that the
loader wasn't able to find.

Thanks,
Ed

-----Original Message-----
From: Dunkle, Ed [mailto:Ed.Dunkle@ameriserve.com]
Sent: Monday, May 01, 2000 7:00 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: servlet can't find itself


How can this be?  

I created a new webapp called "hot" and put my classes under WEB_INF/classes
in the appropriate hierarchy, yet Tomcat doesn't seem to be able to find
them.  Where is it looking?

I put the SnoopServlet in the classes dir and it runs fine from there.  I
suppose I will try Snoop in a package and see what happens then...


Error: 500

Location: /hot/servlet/com.ameriserve.hot.servlet.SessionValidator

Internal Servlet Error:

java.lang.NoClassDefFoundError: com/ameriserve/hot/servlet/SessionValidator
        at java.lang.ClassLoader.resolveClass(ClassLoader.java:245)
        at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Compiled
Code)
        at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad
er.java:141)
        at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
        at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
        at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
        at java.lang.Thread.run(Compiled Code)

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org