tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eric.li...@t-online.de (eric)
Subject Sevlets not seen
Date Fri, 17 Jan 2003 16:25:41 GMT
Greetings!

This has got to be so easy I'm missing something.  :-((

I just installed the latest releases of Apache and Tomcat.  All of the 
examples in Tomcat work great.

I copied the HelloWorldExample to /webapps/apress/WEB-INF/classes/

I put this in the server.xml file:

      <Host name="localhost" debug="0" appBase="webapps"
       unpackWARs="true" autoDeploy="true">

      <Context path="/apress" docBase="apress" debug="9" reloadable="true" />

I put this in the web.xml file in WEB-INF

<web-app>
	<servlet>
	<servlet-name>login</servlet-name>
	<servlet-class>chapter2.login</servlet-class>
	<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet>
	<servlet-name>HelloWorldExample</servlet-name>
	<servlet-class>HelloWorldExample</servlet-class>
	<load-on-startup>1</load-on-startup>
	</servlet>
</web-app>

Yet when I http://localhost:8080/apress/servlet/HelloWorldExample

I get HTTP Status 404

What's the easy part I'm missing?

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message