File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Problem running a sample Servlet Example: HTTP 503 Status code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Problem running a sample Servlet Example: HTTP 503 Status code" Watch "Problem running a sample Servlet Example: HTTP 503 Status code" New topic
Author

Problem running a sample Servlet Example: HTTP 503 Status code

prad argum
Greenhorn

Joined: Feb 18, 2003
Posts: 11
hi,
can anyone help me whats going wrong with the following example:
I have a form.html page in webapps/chapter01 directory
:

This on submitting performs POST Action: on TestServlet. TestServlet.java code is in web-inf classes directory along with its class file

My web.xml descriptor is as follows:

when i press the submit button in the form.html i get the following error:
HTTP Status 503 - Servlet TestServlet is currently unavailable
can anyone help me with this...
thanks
pradgum
prad argum
Greenhorn

Joined: Feb 18, 2003
Posts: 11
Got it solved...
i dint extend the HttpServlet class
thanks any way
pradgum
Fisher Daniel
Ranch Hand

Joined: Sep 14, 2001
Posts: 582
Yes.. your servlet class should be extends HttpServlet...
daniel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem running a sample Servlet Example: HTTP 503 Status code