You are mapping the servlet relative to the context only.
try http://localhost/ServletTest/ServletTest
make sure your Tomcat's listening port number such as 8080 or 80 from the
server.xml file.
----- Original Message -----
From: "Jeff Rancier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 10:55 PM
Subject: HTTP 404 Error
> Hello,
>
> I'm stumped. I have the following directory structure/files:
>
> c:/tomcat/webapps/ServletTest/WEB-INF/web.xml
> c:/tomcat/webapps/ServletTest/WEB-INF/classes/ServletTest.class
>
> I added the following to my server.xml file:
>
> <Context path="/ServletTest"
> docBase="webapps/ServletTest"
> crossContext="false"
> debug="0"
> reloadable="true" >
> </Context>
>
> And my web.xml contains:
>
> <web-app>
> <servlet>
> <servlet-name>ServletTest</servlet-name>
> <servlet-class>ServletTest</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>ServletTest</servlet-name>
> <url-pattern>/ServletTest</url-pattern>
> </servlet-mapping>
> </web-app>
>
> If I attempt to open http://localhost/ServletTest, I get HTTP 404, file
not
> found.
> If I attempt to open http://localhost:8080/ServletTest, I get the page
> cannot be displayed.
>
> Any suggestions would be appreciated.
>
> Jeff
>