aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) 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 Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "resource not available." Watch "resource not available." New topic
Author

resource not available.

ravi janap
Ranch Hand

Joined: Nov 04, 2000
Posts: 389
Hi
I have created a chapter01 directory under
C:\jakarta-tomcat-4.1.18\webapps
Next, I created a WEB-INF directory under C:\jakarta-tomcat-4.1.18\webapps\chapter01
I developed a HelloWorldServlet, the code is as follows:

I compiled the servlet and copied it under C:\jakarta-tomcat-4.1.18\webapps\chapter01\WEB-INF\classes
The C:\jakarta-tomcat-4.1.18\webapps\chapter01\WEB-INF also has web.xml

I started the tomcat as follows:
C:\jakarta-tomcat-4.1.18\bin>startup
I opened the browser and typed the following url http://localhost:8080/chapter01/servlet/HelloWorldServlet
I got the following response:
description The requested resource (/chapter01/servlet/HelloWorldServlet) is not available.
What must be the reason?
Thanks
Ravi


SCJP, SCJD, SCWCD, SCBCD, SCEA
Andy Wong
Greenhorn

Joined: May 28, 2001
Posts: 20
Please download the updated version of the source code of the Exam Study Kit. It will work on the lastest version of tomcat.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
browser and typed the following url http://localhost:8080/chapter01/servlet/HelloWorldServlet

The notation that uses /servlet/yourservlet uses the "invoker" servlet to locate and run your class. This used to be available by default but in Tomcat 4.1.18 it is turned off by default. See the web.xml file in TOMCAT_HOME/conf/
Bill
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Originally posted by janapareddy ravindra:
I got the following response:
description The requested resource (/chapter01/servlet/HelloWorldServlet) is not available.

I had the same problem with tomcat-4.1.24.
uncommenting in %CATALINA_HOME%\conf\web.xml solved the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: resource not available.