You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jani Toro <Ja...@vtt.fi> on 2001/04/09 16:11:05 UTC
Did you get any answers?
Hello Lin Gan
In January you wrote a question to a mailing list:
>Hi, I try to run Servlet from TOMCAT, but it has error. Please give me
some help! The Servlet is to access Oracle DB. V8i. from the Travel DB that
I download >from Oracle site. I use Jdeveloper 3.1.1.2 to create this
project. It compiles and runs fine in Jdeveloper. When I try to deploy it
to TOMCAT, it has the following >error message: Error: 500 Location:
/examples/servlet/test/test Internal Servlet Error:
java.lang.NullPointerException
at >java.lang.ClassLoader.resolveClass0(Native Method) at
java.lang.ClassLoader.resolveClass(ClassLoader.java:588)
at >org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoad
er.java:430)
at >org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServlet
Loader.java:174)
at >org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:26
5) at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
at >org.apache.tomcat.core.Handler.service(Handler.java:254) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at >org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
a:797)
at >org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at >org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
ttpConnectionHandler.java:210)
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) It looks to me like Tomcat cannot
fine the lib files. Also, the test.jar deployment file has sub directory.
If I unzip them
to >"F:\tomcat\jakarta-tomcat-3.2\webapps\examples\WEB-INF\classes", it
will create several sub directories and jar files. How can I run the
"test.class" file, if the >file is in a sub directory say "myproject"? Can
Tomcat get the lib and attachment file from all the sub directory? Thanks
very much. kenny
I am having exactly the same problem. Did you get any answers or have you
solved the problem by yourself?
Best regards, Jani Toro