tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ritwick Dhar <ritwic...@EASTPOINT.COM>
Subject ExceptionInInitializerError on loading Servlet
Date Thu, 28 Dec 2000 22:36:36 GMT
Has anyone seen this one before?
I have a servlet that's being loaded from a jar in the classpath. All the
other jars needed for the servlet to run (jdbc etc) are also in the
classpath. Note, this is not a webapp - the classes are in the system
classpath. Tomcat loads fine, and displays the proper classpath on startup.
But when I access the servlet, it gives the following error. I have a
feeling this has got something to do with the classpath, because when I
changed the order of the jars it worked wonce. Unfortunately, I don't
remember what the order was. Anyway, the order of the jars in the classpath
shouldn't matter, should it?

The same setup runs fine on another box running JRun.

Context log: path="" Error in invoker service() : null
 java.lang.ExceptionInInitializerError
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Error.<init>(Compiled Code)
        at java.lang.LinkageError.<init>(Compiled Code)
        at java.lang.ExceptionInInitializerError.<init>(Compiled Code)
        at java.lang.ClassLoader.resolveClass(Compiled Code)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadSystemClass(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.TcpWorkerThread.run(Compiled Code)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
        at java.lang.Thread.run(Compiled Code)
Context log: path="" <b>Internal Servlet Error:</b><br>
<pre>
java.lang.ExceptionInInitializerError
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Error.<init>(Compiled Code)
        at java.lang.LinkageError.<init>(Compiled Code)
        at java.lang.ExceptionInInitializerError.<init>(Compiled Code)
        at java.lang.ClassLoader.resolveClass(Compiled Code)
        at
org.apache.tomcat.loader.AdaptiveClassLoader.loadSystemClass(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.TcpWorkerThread.run(Compiled Code)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
        at java.lang.Thread.run(Compiled Code)
</pre>

Mime
View raw message