tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eric.li...@t-online.de (eric)
Subject Re: Sevlets not seen
Date Fri, 17 Jan 2003 17:09:08 GMT
Lajos,

Thank you, thank you, thank you.

I should have asked 4 hours ago.  :-))

I have three books, followed them to the 'T' and no mention of this.  I guess 
it's hard to stay up-to-date when the Tomcat is changing so fast!  :-))

Thanks for the quick reply.

On Friday 17 January 2003 17:14, Lajos Moczar wrote:
> 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>


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