tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dontrango <dontra...@myrealbox.com>
Subject RE: Tomcat 5.0.16 Requested resource not available
Date Mon, 26 Jan 2004 14:43:47 GMT
Yup, that's my problem like Tim Funk pointed . Thanks a lot for your
help. Looks like you're one of the most helpful persons on this list :)


On Mon, 2004-01-26 at 22:05, Shapira, Yoav wrote:
> 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:dontrango@myrealbox.com]
> >Sent: Saturday, January 24, 2004 3:42 AM
> >To: tomcat-user@jakarta.apache.org
> >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: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> 
> 
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
-- 
dontrango <dontrango@myrealbox.com>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message