You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by David Thielen <da...@thielen.com> on 2003/03/20 02:06:18 UTC
Very simple servlet - won't show up
Hi;
I am trying to get a very simple servlet to display. This is my web.xml
file:
<?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>Windward Utilities</display-name>
<servlet>
<servlet-name>hello</servlet-name>
<servlet-class>HelloWorldExample</servlet-class>
</servlet>
</web-app>
My directory is:
C:\Program Files\Apache Group\Tomcat 4.1\webapps\utils\WEB-INF\web.xml
C:\Program Files\Apache Group\Tomcat
4.1\webapps\utils\WEB-INF\classes\HelloWorldExample.*
C:\Program Files\Apache Group\Tomcat
4.1\webapps\utils\WEB-INF\classes\LocalStrings*.properties
When I put in the url http://localhost:8080/servlet/hello
I get:
HTTP Status 404 - /servlet/hello
----------------------------------------------------------------------------
----
type Status report
message /servlet/hello
description The requested resource (/servlet/hello) is not available.
----------------------------------------------------------------------------
----
Apache Tomcat/4.1.18
any ideas?
thanks - dave
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org