• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Beer-v1 in OS X, HeadFirst Servlets

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic