File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes http 404 servlet DefaultServlet is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "http 404 servlet DefaultServlet is not available" Watch "http 404 servlet DefaultServlet is not available" New topic
Author

http 404 servlet DefaultServlet is not available

Abhimanyu Rathore
Ranch Hand

Joined: Jan 23, 2010
Posts: 32

Hi guys

I know this question might have been asked a million time by now..
But i am absolutely bewildered with this constant error.

So, here its..

I have simple html form, which does an doPost to servlet(named DefaultServlet)
with 1st doPost, this is the following error




With second doPost, this is what i am getting..



On the Eclipse Editor Console.. this is what i am getting






Any help is appreciable

P.S - value of <url-pattern> in web.xml is "/DefaultServlet", where as in html form, action element is pointing to "DefaultServlet"
- Tell me if i am doing anything wrong

Thanks in advance









William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5


What is your directory layout? Especially, where is that class located. Also you might as well show the entire web.xml.

Bill
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61761
    
  67

There is a list in the ServletsFaq of things to check. Please work throughout it. It includes the check that William suggests.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http 404 servlet DefaultServlet is not available