and do try http://localhost:8080/archive/hwe

Thanks 
Guru

-----Original Message-----
From: Woude, Alexander van der
[mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 12:49
To: [EMAIL PROTECTED]
Subject: Problems deploying webapps on tomcat and apache 



> Hello all,
> 
> I set up apache 2.0.43  to use tomcat 4.1.18 as a servlet container. I use
Redhat 8.0 as OS.
> 
> I got the examples working fine. I can reach them through both
http://localhost/ and http://localhost:8080.
> Now I am trying to deploy my own application, with little succes.
> 
> Under the webapps directory I created the following structure:
> 
> /webapps
>       /Archive
>               /WEB-INF
>                       /classes
>                               LoginServlet
>                               and more servlets, classes etc
>                       /lib
>                               Connector-mysql- 3_0_6.jar      
>                       
>                       web.xml
> 
> 
> Calling my Archieve with
http://localhost:8080/archive/servlet/LoginServlet gives a 404: requested
resource not available.
> Calling my Archieve with http://localhost/archive/servlet/LoginServlet
does the same thing.
> 
> What am I doing wrong???
> 
> Below are my server.xml and web.xml.
> 
> I added a context for the application in server.xml
> 
>     <!-- Tomcat Root Context -->
>         <!--
>           <Context path="" docBase="ROOT" debug="0"/>
>         -->
>       <!-- Define new context for Archive Web -->
>         <Context path="/archive" docBase="archive" debug="2"
>                  reloadable="true" crossContext="true">
>           <Logger className="org.apache.catalina.logger.FileLogger"
>                    prefix="localhost_archive_log." suffix=".txt"
>                   timestamp="true"/> 
>         <!--  
>       <Enviroment name="maxExceptions" value="java.lang.Integer"
>                     value="15"/>
>             
>         <Parameter name="context.param.name" value="context.param.value"
>                    override="false"/>                           
>         -->
>       </Context>
> 
> 
> My web.xml is like this:
> 
> <?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>Tomcat Examples</display-name>
>     <description>
>       Tomcat Example servlets and JSP pages.
>     </description>
> 
>     <!-- Define example application events listeners -->
>     <listener>
>         <listener-class>listeners.ContextListener</listener-class>
>     </listener>
>     <listener>
>         <listener-class>listeners.SessionListener</listener-class>
>     </listener>
> 
>     <!-- Define servlets included in archive -->
>      
>     <servlet>
>         <servlet-name>LoginServlet</servlet-name>
>         <servlet-class>LoginServlet</servlet-class>           
>     </servlet> 
>     <servlet-mapping>
>       <servlet-name>LoginServlet</servlet-name>
>       <url-pattern>/hwe</url-pattern>
>     </servlet-mapping>
>   
> </web-app>
>       
> ----------------------
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to