• 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:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.
 
Marshal
Posts: 67162
169
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:-)
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!