wood burning stoves 2.0
The moose likes Tomcat and the fly likes requested resource cannot be found. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic

requested resource cannot be found.

Marcus Halberstram

Joined: Mar 21, 2009
Posts: 19
I am reading Head first jsp 2nd editon and trying to follow an example for ch.3.
My development environment is:


<web-app xmlns="http://java.sun.com/xml/ns/j2ee"

<servlet-name>Ch3 Beer</servlet-name>

<!-- Fully qualified name of the servlet class file -->

<servlet-name>Ch3 Beer</servlet-name>


my deployment environment is:
tomcat home-->webapps-->Beer-v1-->form.html
tomcat home-->webapps-->Beer-v1-->WEB-INF-->web.xml(same as the one in dev environment).

I am using tomcat 5.5.27 and java 1.6.0_02.

when I type http://localhost:8080/Beer-v1/form.html tomcat says "The requested resource () is not available."

On a related note, how do I stop and start tomcat if there aren't any shutdown.bat or startup.bat or shell scripts in tomcat home/bin?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Crossposted: http://www.coderanch.com/t/437188/Servlets/error

Don't do that. Stick to one topic. If a moderator feel that the Tomcat forum is more appropriate (which isn't at all, this problem is not Tomcat specific, this problem is just the lack of your understanding of the Servlet API, you would just get the same problem in alternative application servers!), then s/he will move the topic for you. Don't take it in your hands.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540


[Asking smart questions] [About Bear] [Books by Bear]
jQuery in Action, 3rd edition
subject: requested resource cannot be found.
It's not a secret anymore!