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 18:35:12 GMT
Ganesh,

Thanks!  I guess that explains the differences from the books.  I wonder 
what's next :-))

Thanks again.

On Friday 17 January 2003 17:23, Ganesh.K.Rao@gsk.com wrote:
> InvokerServlet is disabled by default in Tomcat 4.1.12 onwards for
> security reasons. So either you can uncomment the following lines from
> ${TOMCAT_HOME}/conf/web.xml or include these lines in
> ${TOMCAT_HOME}/webapps/<your-context>/WEB-INF/web.xml,
>
>
>     <servlet-mapping>
>         <servlet-name>invoker</servlet-name>
>         <url-pattern>/servlet/*</url-pattern>
>     </servlet-mapping>
>
> Thanks,
> Ganesh.
>
>
>
>
> eric.linux@t-online.de
>
> 17-Jan-2003 11:25
> Please respond to "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>
>
>
>
>         To:     tomcat-user
>
>         cc:
>         Subject:        Sevlets not seen
>
> 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