Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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

 
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.
 
Author and ninkuma
Marshal
Posts: 66783
168
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:-)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!