tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deja User" <>
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 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 srcipt.

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


java.lang.ClassNotFoundException: Topic
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(
        at PANJA.MtClass.mtInitializer(
        at Topic.mtClass(
        at Topic.openInstanceCursor(
        at TopicList.getTopics(
        at TopicServlet.doGet(
        at javax.servlet.http.HttpServlet.service(
        at javax.servlet.http.HttpServlet.service(
        at org.apache.tomcat.core.ServletWrapper.doService(
        at org.apache.tomcat.core.Handler.service(
        at org.apache.tomcat.core.ServletWrapper.service(
        at org.apache.tomcat.core.ContextManager.internalService(
        at org.apache.tomcat.core.ContextManager.service(
        at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(
        at org.apache.tomcat.service.TcpWorkerThread.runIt(
        at org.apache.tomcat.util.ThreadPool$

--== Sent via ==--

View raw message