File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes 404 after adding web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "404 after adding web.xml" Watch "404 after adding web.xml" New topic

404 after adding web.xml

Shoan Motwani

Joined: Nov 12, 2008
Posts: 2
I am a java noob. Been trying out the examples from Oreilly's Head First Servlets & JSP.

I am using Tomcat 5.5 running on Mac Os X 10.5.

I created webapps/Beer-v1 and dropped in a plain html file. On accessing it at http://localhost:8080/Beer-v1/form.html, I get the html page as expected. But after adding webapp/WEB-INF/web.xml containing the following, I don't get anything other than a 404.

The error I get is
Allahbaksh Asadullah

Joined: Aug 30, 2007
Posts: 9
Please check your log files which are there in tomcat/logs.

There will be appropriate error message.

Allahbaksh Asadullah

Joined: Aug 30, 2007
Posts: 9
Please note that a tag is not properly closed in the web.xml


I agree. Here's the link:
subject: 404 after adding web.xml
Similar Threads
HFSJ-Mini MVC doubt
MVC tutorial Head First
Getting problem with post method
requested resource cannot be found.
Tomcat 5.5 - application development