Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Beer-v1 in OS X, HeadFirst Servlets

 
Ryan Supeene
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI there,

I was wondering if anyone had to do anything special to get this very basic first example working from HeadFirst Servlets and JSP.
For some reason once I have deployed everything as described in the book I get a 404 error.
Some details:

Trying to load site http://localhost:8080/Beer-v1/form.html
1. When web.xml is not in the WEB-INF the HTML loads ok
2. As soon as I add the web.xml and the webapps/Beer-v1/WEB-INF/classes/com/example/web/BeerSelect.class the from page no longer loads.

I have spend a good 4 hours trying to debug this and am just baffled I am sure its something stupid but I hope someone can lend me a hand. Thanks

Soupy
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you check your container's log ? Your web.xml might not be well-formed.
 
Ryan Supeene
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there
I solved the pepvblem by looking on the logs it was the XML
I was using URL-mapping not URL-pattern

That was not so smart
Thanks for your help

Soupy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic