Many thanks!!!  I added this entry to the web.xml
   <servlet-mapping>
        <servlet-name>TestServlet</servlet-name>
        <url-pattern>/TestServlet</url-pattern>
    </servlet-mapping>
and was able to access it with this url:
http://localhost:8080/stcecilia/TestServlet

Thanks,
Lori

----- Original Message -----
From: "Tam, Michael" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, April 02, 2003 7:14 PM
Subject: RE: Can't access my servlet


> you need url mapping for your servlet in your web.xml file.  Servlet
inovker
> is disable since 4.1.12 I believe if you do read the release note
carefully
> in your tomcat installation.
>
> -----Original Message-----
> From: Lori Bishop [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 02, 2003 4:12 PM
> To: tomcat maillist
> Subject: Can't access my servlet
>
>
> I just installed Tomcat and am able to start it up successfully and access
> the examples servlet successfully using:
> http://localhost:8080/examples/servlet/HelloWorldExample
>
> I have my own servlet in
>
C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\classes\TestServlet.class
>
> When I try to access it with
> http://localhost:8080/stcecilia/servlet/TestServlet
>
> I get this message:
> description The requested resource (/stcecilia/servlet/TestServlet) is not
> available.
>
> Based on other postings in this mailing list, I added this entry to the
> server.xml
>
>         <!-- stcecilia Context -->
>      <Context path="/stcecilia" docBase="stcecilia" debug="0"
>              reloadable="true" crossContext="true">
>       <Logger className="org.apache.catalina.logger.FileLogger"
>              prefix="localhost_stcecilia_log." suffix=".txt"
>            timestamp="true"/>
>       </Context>
>
>
> Here is my C:\jakarta-tomcat-4.1.24\webapps\stcecilia\WEB-INF\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>
>
>     <display-name>StCeciliaSite</display-name>
>     <description>
>       St Cecilia Website
>     </description>
>
>     <servlet>
>          <servlet-name>TestServlet</servlet-name>
>          <servlet-class>TestServlet</servlet-class>
>     </servlet>
>
> </web-app>
>
>
> Any ideas on what I am doing wrong.  Thanks for your help,
>
> Lori
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

Reply via email to