my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "http 404 servlet DefaultServlet is not available" Watch "http 404 servlet DefaultServlet is not available" New topic

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

Joined: Mar 22, 2000
Posts: 12761

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60788

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]
subject: http 404 servlet DefaultServlet is not available
Similar Threads
Hibernate:java.lang.ClassNotFoundException: org.hibernate.Session
Allocate exception for servlet AxisServlet
error while trying to download Excel file using java
Spring tomcat error
HTTPServletRequest containing an HTTPEntity