You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lori Bishop <lb...@fuse.net> on 2003/04/03 02:12:19 UTC
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org