complicated error for the first, simpliest servlet, after suceed !_NEWLINE_!on accessing the Tomcat example servlet?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Krates_Ng
Posted On:   Saturday, April 28, 2001 02:28 PM

Hi, I have installed Tomcat on my NT box. I get it to servlet the examples. Then, I write a simplest servlet with have doGet() printing "My Test". I've compiled it and put the .class file to TOMCAT_HOME/webapps/examples/Web-inf/classes with all other example classes. But whe I hit this new servlet, it returns the following error, while other example servlets are working fine. I use the JBuilder jdk1.3 with servlet.jar in jakarta-servletapi-3.2.1 when I build MyTest.class. Please help, thanks in advance. -Krates =================== Error: 500 Location: /examples/servlet/MyTest Internal Servlet Error:    More>>

Hi,

I have installed Tomcat on my NT box. I get it to servlet the
examples. Then, I write a simplest servlet with have doGet()
printing "My Test". I've compiled it and put the .class file to
TOMCAT_HOME/webapps/examples/Web-inf/classes with all
other example classes. But whe I hit this new servlet, it returns
the following error, while other example servlets are working
fine.

I use the JBuilder jdk1.3 with servlet.jar in jakarta-servletapi-3.2.1
when I build MyTest.class.

Please help, thanks in advance.
-Krates

===================
Error: 500

Location: /examples/servlet/MyTest

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(AdaptiveClassLoader.java:430)
at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174)
at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)
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.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.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)
======================

   <<Less

Re: complicated error for the first, simpliest servlet, after suceed !_NEWLINE_!on accessing the Tomcat example servlet?

Posted By:   arup_chowdhury  
Posted On:   Thursday, May 3, 2001 12:08 AM

Check if u have put a package statement on the top of the servlet. if so then just comment it. or put the servlet in
classes/package name dir
About | Sitemap | Contact