We have been successfully using Tomcat 3.2.3 for
deploying our application which uses servlets. However
to take advantage of the latest we decided to migrate
to Tomcat 4.0.1. Now we are having problem deploying
the servlets, they just dont work. I have read all the
posts here and jguru to figure out what is wrong and
how to fix it

Here is what I am doing

I have

the following folder structure

com\mycompany\servlets\MainServlet
com\mycompany\servlets\domain\OtherServlet

I have the following structure setup in webapps

com
 --mycompany
  --WEB-INF
        web.xml
    --classes
      --com
       --mycompany
        --servlets \MainServlet.class
          --domain\OtherServlet.class


The following is the mapping in my server.xml




<Context path="/com"  docBase="com" 
         debug="0"  reloadable="true"/> 
          
                
<Context path="/com/mycompany" 
docBase="com/mycompany" 
                   debug="0"  reloadable="true"/> 
                
                
<Context path="/com/mycompany\servlets" 
docBase="com/mycompany/servlets"                            debug="0" 
reloadable="true"/> 
                
                        
<Context path="/com/mycompany/servlets/domain" 
docBase="com/mycompany/servlets/domain" 
                          debug="0"  reloadable="true"/> 





Here is how my web.xml looks after all the filter
stuff




<servlet>
        <servlet-name>MainServlet</servlet-name>
        <servlet-class>
com.mycompany.servlets.MainServlet
</servlet-class>
    </servlet>

<servlet>
<servlet-name>OtherServlet</servlet-name>
<servlet-class>
com.mycompany.servlets.domain.OtherServlet
</servlet-class>
    
</servlet>




<servlet-mapping>
            <servlet-name>
                        MainServlet
            </servlet-name>
       <url-pattern>
         /com/mycompany/servlets/MainServlet/*
       </url-pattern>
     </servlet-mapping>

<servlet-mapping>
            <servlet-name>
                        OtherServlet
            </servlet-name>
       <url-pattern>
         /com/mycompany/servlets/domain/OtherServlet/*
       </url-pattern>
     </servlet-mapping>




----------------------------

The catalina log file shows that the application is
not being deployed. It does not find the web.xml file
inthe WEB-INF folder. I followed suggestions and
created the folder from command prompt.. 

I am I doing anything wrong here?

Appreciate your time

Thanks
Kris


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to