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

requested resource cannot be found.

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
I am reading Head first jsp 2nd editon and trying to follow an example for ch.3.
My development environment is:

beerV1-->web-->form.html:

beerV1-->etc--->web.xml:
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">

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

<!-- Fully qualified name of the servlet class file -->
<servlet-class>com.example.web.BeerSelect<servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Ch3 Beer</servlet-name>
<url-pattern>/SelectBeer.do</url-pattern>
</servlet-mapping>

</web-app>

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?
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Crossposted: https://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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Closed.
 
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic