tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ratz, Peter" <Peter.R...@coc-ag.de>
Subject problem to invoke my servlet
Date Thu, 25 May 2000 14:54:35 GMT
I have a servlet and the configuration is like the examples (context,
tomcat.conf, web.xml ...). When i try to invoke my servlet
(http://localhost/formmailer/servlet/FormMailer) i get the following
message:

Error: 500

Location: /formmailer/servlet/FormMailer

Internal Servlet Error:

java.lang.ExceptionInInitializerError
        at java.lang.ClassLoader.resolveClass(Compiled Code)
        at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Compiled
Code)
        at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Compiled
Code)
        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(Compiled
Code)
        at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
        at org.apache.tomcat.core.ContextManager.service(Compiled Code)
        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)


When i try it again i get:

Error: 500

Location: /formmailer/servlet/FormMailer

Internal Servlet Error:

java.lang.NoClassDefFoundError: de/test/servlets/formmailer/FormMailer
        at java.lang.ClassLoader.resolveClass(Compiled Code)
        at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Compiled
Code)
        at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Compiled
Code)
        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(Compiled
Code)
        at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
        at javax.servlet.http.HttpServlet.service(Compiled Code)
        at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
        at org.apache.tomcat.core.ContextManager.service(Compiled Code)
        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)

The class is within the WEB-INF/classes and all *.jar are located in
WEB-INF/lib.

All the examples provided with tomcat work?!

Thanks, Peter

Mime
View raw message