File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

404 after adding web.xml

 
Shoan Motwani
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please check your log files which are there in tomcat/logs.

There will be appropriate error message.

Regards,
Allahbaksh
htttp://allahbaksh.blogspot.com
 
Allahbaksh Asadullah
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please note that a tag is not properly closed in the web.xml

<url-pattern>/SelectBeer.do</url-pattern>
<servlet-mapping>

</servlet-mapping>
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic