This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Servlets and the fly likes problem in running servlet programs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Servlets
Bookmark "problem in running servlet programs" Watch "problem in running servlet programs" New topic

problem in running servlet programs

nishadinesh gupta

Joined: Apr 05, 2006
Posts: 4
i had problem in running my servlet programs. after starting the javawebserver and compiled the file and saved it to javawebserver2.0/servlets, i typed in browser
but it was giving me "Not Found (404) error"

The same program is running on my friends PC.

Please suggest me some remedie to this its quite urgent.

Eduardo Dela Rosa

Joined: Apr 15, 2004
Posts: 25

Make sure that your servlet has mapping in your deployment descriptor (web.xml) as in:

<servlet-name>My Servlet</servlet-name>

<servlet-name>My Servlet</servlet-name>

With this mapping, you can invoke your servlet as:


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63208


Why are you using something so antiquated?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Have you checked out Aspose?
subject: problem in running servlet programs
It's not a secret anymore!