Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The ubiquitous 404 -- Resource not found Error with Beer-v1

 
Edgar Henry
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello I am finding countless people having this problem with the Beer selection app from the headfirst JSP & Servlets book.  None of those solutions from those threads has helped me yet.  I have also read the faqs for common problems when deploying servlets.  I do have other servlets working and according to the tomcat logs my beer app is deploying.

This is what I have so far.  First is form.html which is under /usr/share/tomcat/webapps/Beer-v1/



I have web.xml under /usr/share/tomcat/webapps/Beer-v1/WEB-INF



here is the code that made BeerSelect.class which is under /usr/share/tomcat/webapps/Beer-v1/WEB-INF/classes/com/example/web/


my browser is giving me back
HTTP Status 404 - /Beer-v1/SelectBeer.do

type Status report

message /Beer-v1/SelectBeer.do

description The requested resource is not available.



I am at wits end here.  I am a java/jsp/servlet newbie here.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your URL against the servlet mapping to make sure they match. (hint: they don't)
 
Edgar Henry
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Check your URL against the servlet mapping to make sure they match. (hint: they don't)


Slaps myself on the forehead.  It still took me a good 5 minutes to see it after your hint:-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic