wood burning stoves 2.0*
The moose likes Servlets and the fly likes resource not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

resource not available

Leon Glass
Greenhorn

Joined: Jan 22, 2009
Posts: 5
Hi I am having a bit of a problem that I can't seem to figure out. I have Java SE 6, tomcat 6 installed on ubuntu 9.04 and have been working through the head first servlets & jsp book. I have got to ch 3 and attempted the mini mvc tutorial but I get the following error when I submit the form.
type Status report

message /beer-example/Select.do

description The requested resource (/beer-example/Select.do) is not available.
I have the following web.xml file


I have the following directory structure under webapps/beer-example
form.html
WEB-INF
|_ web.xml
classes
|_ com
|_ example
|_web
|_ BeerSelect.class

form.html is returned fine and I am able to select an option and submit it which gives me the error above.

and just for completeness the source for BeerSelect.java


I have had a look around and come across a few possibilities including something about the invoker servlet. As far as I can see the mapping should work, any help.


Noli illegitemi carborundum
ahmed yehia
Ranch Hand

Joined: Apr 22, 2006
Posts: 424
Welcome to Java Ranch!
As far as I can see the mapping should work

You have a mapping mismatch in your Servlet. You make a request for 'Select.do' where in the DD it is declared 'SelectBeer.do'
Leon Glass
Greenhorn

Joined: Jan 22, 2009
Posts: 5
ahmed yehia wrote:Welcome to Java Ranch!
As far as I can see the mapping should work

You have a mapping mismatch in your Servlet. You make a request for 'Select.do' where in the DD it is declared 'SelectBeer.do'
Well I should have seen that. Thanks
ankur tyagi
Ranch Hand

Joined: Apr 01, 2009
Posts: 49
I am having the same problem but i have rechecked and there is no mismatch error
but the error i returned is:
type Status report

message /beerv1/%E2%80%9DSelectBeer.do%E2%80%9D

description The requested resource (/beerv1/%E2%80%9DSelectBeer.do%E2%80%9D) is not available.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61106
    
  66

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: resource not available