This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Servlet, 404 Not Found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Servlet, 404 Not Found" Watch "Servlet, 404 Not Found" New topic

Servlet, 404 Not Found

eddie fahy

Joined: Sep 12, 2006
Posts: 1
I am running a webapp which has a servlet too. When I try to run my webapp, all the JSPs work good but the servlet is "not found". If I try to access the application from "http://localhost/mywebapp" everything including the servlet, etc. is workign perfect. but when I try to access my webapp via internet, everything works, but servlet doesnt' work. I get "404 Not Found" error message. I checked chmod of the files, they all are in good shape.
My web.xml is very small and simple (pasted below). Can anyone tell me what could be the reason that outside world cannot access my servlet?


<web-app xmlns="" version="2.4"



jQuery in Action, 3rd edition
subject: Servlet, 404 Not Found
It's not a secret anymore!