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: problem with servlets and tomcat
Date Tue, 27 Jul 2004 17:26:54 GMT

Hi,
Since your servlet is mapped to /SimpleServlet, access it as
/SimpleServlet, not /servlet/SimpleServlet.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: sowmya [mailto:sowmya_s15@yahoo.com]
>Sent: Tuesday, July 27, 2004 1:08 PM
>To: tomcat-user@jakarta.apache.org
>Subject: problem with servlets and tomcat
>
>Hi,
>I am getting the HTTP 404 message - but my settings
>have been done - atleast, seems so to me.  I access my
>servlet using http://local:8080/servlet/SimpleServlet
>and my class
>file is in webapps/ROOT/WEB-INF/classes. I am trying
>to set up Tomcat
> with Servlets before I can migrate my actual
>application to it.
>
>My Web.xml is
><?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>
>  <display-name>Welcome to Tomcat</display-name>
>  <description>
>     Welcome to Tomcat
>  </description>
>    <servlet>
>
><servlet-name>org.apache.jsp.index_jsp</servlet-name>
>
><servlet-class>org.apache.jsp.index_jsp</servlet-class>
>    </servlet>
>	<servlet>
>		<servlet-name>SimpleServlet</servlet-name>
>		<servlet-class>SimpleServlet</servlet-class>
>	</servlet>
>    <servlet-mapping>
>
><servlet-name>org.apache.jsp.index_jsp</servlet-name>
>        <url-pattern>/index.jsp</url-pattern>
>    </servlet-mapping>
>	<servlet-mapping>
>		<servlet-name>SimpleServlet</servlet-name>
>		<url-pattern>/SimpleServlet</url-pattern>
>	</servlet-mapping>
></web-app>
>
>My Server.xml
>
><Server port="8005" shutdown="SHUTDOWN" debug="0">
><Listener
>className="org.apache.catalina.mbeans.ServerLifecycleListener"
>            debug="0"/>
><Listener
>className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
>            debug="0"/>
> <Service name="Catalina">
>
>  <Connector port="8080"
>               maxThreads="150" minSpareThreads="25"
>maxSpareThreads="75"
>               enableLookups="false"
>redirectPort="8443" acceptCount="100"
>               debug="0" connectionTimeout="20000"
>               disableUploadTimeout="true" />
>
>  <Engine name="Catalina" defaultHost="localhost"
>debug="0">
>
>  <Logger
>className="org.apache.catalina.logger.FileLogger"
>              prefix="catalina_log." suffix=".txt"
>              timestamp="true"/>
>
>   <Realm
>className="org.apache.catalina.realm.UserDatabaseRealm"
>                 debug="0"
>resourceName="UserDatabase"/>
>
>     <Host name="localhost" debug="0"
>appBase="webapps"
>       unpackWARs="true" autoDeploy="true"
>       xmlValidation="false"
>xmlNamespaceAware="false">
>
> <Logger
>className="org.apache.catalina.logger.FileLogger"
>                 directory="logs"
>prefix="localhost_log." suffix=".txt"
>            timestamp="true"/>
>
>      </Host>
>     >
>  </Engine>
>
>  </Service>
>
></Server>
>    <DefaultContext reloadable="true" />
>
>P.S - I am following settings from
>http://javaboutique.internet.com/tutorials/Tomcat/configure.html#Servle
t-
>Reloading
>Any help would be greatly appreciated.
>Thanks a lot,
>Sowmya.
>
>=====
>The faster you go, the shorter you are.
>- Einstein
>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>http://promotions.yahoo.com/new_mail
>
>---------------------------------------------------------------------
>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


Mime
View raw message