• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

run servlet in tomcat 5.5 in eclipse 3.2

 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
joseph here

i have eclipse 3.2 with tomcat 5.5 version server plugin.


i am able to run jsp's but i am not able to run servlet.

i right clicked the root directory and have new servlet.
it shows the following 404 error. what i have to do. how to write the servlets.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't list the 404 error, and in particular the URL.

If you were hoping that servlets could be found just by typing their names, that was an insecure feature that's no longer supported in Tomcat. You now need to explicitly define the servlet and its relative URL in web.xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic