Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The requested resource () is not available

Status
Not open for further replies.

Danielson25

Programmer
Jun 11, 2003
2
AU
I can't get a simple servlet to run based on instructions from ch1 in a book.

I get this error...
'The requested resource (/myApp/servlet/TestingServlet) is not available'.

I got Tomcat 4.1.24 server running.
The default local jsp loaded ok.

Created 'myApp' directory under webbapps.
Created 'WEB-INF' under myApp.
Created 'classes' under WEB-INF

Created servlet called TestingServlet.
Placed servlet in the WEB-INF directory.
Compiled servlet.
Started Tomcat server.
Typed into the browser
Doesn't work...
Never told to create a 'servlet' directory but I don't think this is required.
What's going on?
 
just a little mod from my initial post..
the servlet was placed directly under the 'classes' directory.. not web-inf..
 
Something to look at ::

In your URL
the '/servlet/' part is what the Tomcat InvokerServlet maps to WEB-INF/classes. In TOMCAT_HOME\conf, look at web.xml and search for "invoker". If this is commented out, then your URL won't work. Uncomment it, and it will.

Ben
 
HI!
i have the same question as Daielson, i have Uncomment invorkerservlet.but I get this error...
'The requested resource (/myApp/servlet/TestingServlet) is not available' too?

thanks!
Pianzf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top