Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Http Status 404 Error

 
syed quadri
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Pie
Posts: 64972
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the ServletsFaq for the things to check for.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic