tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lajos Moczar <lm...@galatea.com>
Subject Re: Sevlets not seen
Date Fri, 17 Jan 2003 16:14:51 GMT
Servlet mappings are missing. You need something like:

   <servlet-mapping>
     <servlet-name>login</servlet-name>
     <url-pattern>/login</url-pattern>
   </servlet-mapping>

   <servlet-mapping>
     <servlet-name>HelloWorldServlet</servlet-name>
     <url-pattern>/HelloWorldServlet</url-pattern>
   </servlet-mapping>

after your <servlet> tags in web.xml

Regards,

Lajos


eric wrote:
> 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>
> 
> 


-- 



                    Lajos Moczar
       ----------------------------------------
     Open Source Support, Consulting and Training
       ----------------------------------------
             Cocoon Developer's Handbook
  (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

                    _      _____
                   / \         /
                  /___\      /
                 /     \   /____

      http://www.galatea.com -- powered by AzSSL


--
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