tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: error 404 when calling servlet
Date Fri, 24 Jan 2003 14:09:31 GMT
Howdy,
You have two choices:

1. Comment in the <servlet-mapping> element for the invoker servlet in
$CATALINA_HOME/conf/web.xml.  This is commented out by default in tomcat
4.1.18 for security reasons.

2. Add a <servlet> and <servlet-mapping> element for your servlet class
into your web.xml.  (/mysystem/WEB-INF/web.xml).

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Syukri Jamaluddin [mailto:syukri.jamal@time.net.my]
>Sent: Thursday, January 23, 2003 11:26 PM
>To: tomcat-user@jakarta.apache.org
>Subject: error 404 when calling servlet
>
>hi,
>i'm new tomcat user (using 4.1.18 in windows 98), got a problem with my
>servlet.
>
>-i've constructed my webapp class dir
"\webapp\mysystem\WEB-INF\classes"
>and i'd put a sevlet there named MyServlet.class (this servlet works in
>another web app server)
>
>-i've tried to call directly from browser
>"http://127.0.0.1:8080/mysystem/servlet/MyServlet" and got response:
>
>HTTP Status 404 - /mysystem/servlet/MyServlet
>type: Status report
>message: /mysystem/servlet/MyServlet
>description: The requested resource (/mysystem/servlet/MyServlet) is
not
>available.
>
>-i've checked the server.xml file, it's all there (the Context element)
>and i've follow all the "App Developer Guide".
>
>-is there anything that i've missed to configure or any suggestion to
>make this thing works, please.
>
>thank you.
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-
>help@jakarta.apache.org>


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


Mime
View raw message