aspose file tools*
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
Author

Http Status 404 Error

syed quadri
Greenhorn

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
Greenhorn

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
Rancher

Joined: Mar 22, 2000
Posts: 12789
    
    5


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.

Bill
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61232
    
  66

See the ServletsFaq for the things to check for.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Http Status 404 Error