wood burning stoves
The moose likes Servlets and the fly likes Http Status 404 Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Http Status 404 Error" Watch "Http Status 404 Error" New topic

Http Status 404 Error

syed quadri

Joined: Nov 11, 2012
Posts: 10
hi i am getting 404 error can any budy solve my problem following is web.xml code

and follwing is the servlet code

html code

http status 404 error i am getting how to solve the problem can any budy help me to fix this problem
Saroj Kumar

Joined: Dec 30, 2012
Posts: 1

just check that, whether all files are located at their supposed location or not....
Second, as standard port number of tomcat should be of 4 digits.... you have kept it of 2 digits only, change it to 4 digits.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037

This is a common beginner error. ALL classes used in servlets MUST be in a package AND placed under the WEB-INF
directory accordingly. The reason being that when the JVM class loader sees a class without a package, it looks in
the "current" directory - you have no control over what the current directory is.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

See the ServletsFaq for the things to check for.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link: http://aspose.com/file-tools
subject: Http Status 404 Error
It's not a secret anymore!