tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deja User" <sruj...@my-deja.com>
Subject Tomcat3.2.1 -ClassNotFoundException error when using Third-party libraries
Date Sat, 07 Apr 2001 00:38:48 GMT
Hi there:

I'm having the following configuration and I'm using mod_jk instead of mod_jserv and starting
Tomcat using startup.sh script provided.
Tomcat 3.2.1+Apache1.3.9+Sun Solaris2.7

I have a servlet (TopicServlet) which is using a thirdparty library(PANJA.jar). When I'm running
the same code but using main() I could be able to get the code work but when I tried to run
it as a servlet I'm getting the following error.

I could reach the servlet (configured server.xml and web.xml) and even put PANJA.jar in WEB-INF/lib
of Tomcat. Also I included it(PANJA.jar) in CLASSPATH while running the startup.sh srcipt.

I don't know where I'm going wrong. Please help. 
PS: PANJA.MtClass.mtInitializer(MtClass.java:163) - I'm calling MtClass's mtInitializer("Topic").
Topic and TopicList are my classes.

Thanks,
Srujan

java.lang.ClassNotFoundException: Topic
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:120)
        at PANJA.MtClass.mtInitializer(MtClass.java:163)
        at Topic.mtClass(Topic.java:45)
        at Topic.openInstanceCursor(Topic.java:35)
        at TopicList.getTopics(TopicList.java:16)
        at TopicServlet.doGet(TopicServlet.java:42)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
        at org.apache.tomcat.core.Handler.service(Handler.java:286)
        at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
        at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
        at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
        at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)
        at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
        at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
        at java.lang.Thread.run(Thread.java:484)



------------------------------------------------------------
--== Sent via Deja.com ==--
http://www.deja.com/



Mime
View raw message