Howdy,
Do you have a servlet-mapping element in your web.xml for this servlet?
Doesn't look like it, and that's probably your problem.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: dontrango [mailto:[EMAIL PROTECTED]
>Sent: Saturday, January 24, 2004 3:42 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat 5.0.16 Requested resource not available
>
>
>Hi,
>
>I have the error message below whenever I'm calling my servlet:
>
>I run "http://localhost:8080/myApp/servlet/TestingServlet2";
>
>I get :
>
>HTTP Status 404 - /myApp/servlet/TestingServlet2
>
>type Status report
>
>message /myApp/servlet/TestingServlet2
>
>description The requested resource (/myApp/servlet/TestingServlet2) is
>not available.
>Apache Tomcat/5.0.16
>
>---
>
>I read the thread "RE: Tomcat4.1.29 Requested resource not available"
on
>this mailing list, I managed to get the same result suggested by BAO
>RuiXian on the last thread. So I still don't get the solution.
>
>
>My settings:
>------------
>
>JAVA_HOME=/usr/local/opt/j2sdk1.4.2_01/
>"CLASSPATH=/usr/local/opt/tomcat/common/lib/servlet-api.jar:."
>
>
>Using CATALINA_BASE:   /usr/local/opt/tomcat
>Using CATALINA_HOME:   /usr/local/opt/tomcat
>Using CATALINA_TMPDIR: /usr/local/opt/tomcat/temp
>Using JAVA_HOME:       /usr/local/opt/j2sdk1.4.2_01/
>
>My server.xml
>-------------
>
><Host name="localhost" debug="4" appBase="webapps"
>       unpackWARs="true" autoDeploy="true"
>       xmlValidation="false" xmlNamespaceAware="false">
>        <Logger className="org.apache.catalina.logger.FileLogger"
>                 directory="logs"  prefix="mandala_log." suffix=".txt"
>            timestamp="false"/>
>        <Logger className="org.apache.catalina.logger.SystemOutLogger"
>                 directory="logs" prefix="mandala_sysout_log."
>suffix=".txt"
>                 timestamp="false"/>
>        <Logger className="org.apache.catalina.logger.SystemErrLogger"
>                 directory="logs" prefix="mandala_syserr_log."
>suffix=".txt"
>                 timestamp="false"/>
>
>        <!-- Turn on servlet reloading -->
>        <DefaultContext reloadable="true" debug="4"/>
>
>        <!-- Tomcat Root Context -->
>        <Context path="/myApp" docBase="myApp" reloadable="true"
>debug="4"/>
>      </Host>
>
>My web.xml
>----------
><?xml version="1.0" encoding="ISO-8859-1"?>
>
><!DOCTYPE web-app
>    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>    "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
><web-app>
>  <servlet>
>    <servlet-name>TestingServlet2</servlet-name>
>    <servlet-class>TestingServlet2</servlet-class>
>  </servlet>
></web-app>
>
>What I've done:
>---------------
>
>I have an instance of tomcat4.1.27 running on another machine (say
>hostA) and this tomcat5.0.16 runs on (host B).
>
>1. I compiled 'TestingServlet2' on hostB, brought it to hostA to the
>same directory ( I have the same directory structure, *.xml files on
>both hosts ) I managed to get the wanted output on host A but not on
>host B.
>
>2. I compiled 'TestingServlet2' on host B in
>CATALINA_HOME/webapps/myApp/WEB-INF/classes, brought the .java file to
>CATALINA_HOME/webapps/jsp-examples/WEB-INF/classes and compiled it
>there.
>
>the I revert to the original server.xml:
>
><Context path="" docBase="ROOT" reloadable="true" debug="4"/>
>        <!--
>        <Context path="/myApp" docBase="myApp" reloadable="true"
>debug="4"/>
>        -->
>
>
>then I run http://localhost:8080/jsp-examples/servlet/TestingServlet2.
>
>I still get the 'HTTP 404' error message. I managed to see the other
>examples without any problem.
>
>3. when I run http://localhost:8080/myApp/, I'm able to see the
>directory listing there.
>
>It seems that only catalina can't see the servlets I placed in the
>WEB-INF/classes directory.
>
>Since I've set "debug=4" in my server.xml,
>should there not be some error messages in my
>CATALINA_HOME/logs/log_localhost*? I don't get any message other than
>"INFO:*" lines in it.
>
>Is there a way to have a similar utility to log errors like Apache's
>error_log?
>
>Thanks for the suggestions :)
>
>
>
>
>
>
>
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to