Chuck, Thank you for your reply.

I didn't copy 4.1 server.xml but instead build it fresh on 5.5
provided server.xml.

Following is the server.xml (removed comments and commented lines)
-------------------------------------------------------------------------------------------------------
<Server port="8005" shutdown="SHUTDOWN">

  <Listener className="org.apache.catalina.core.AprLifecycleListener" />
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
  <Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
/>
  <Listener 
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
  <Listener className="org.apache.jk.config.ApacheConfig"
modJk="/usr/lib64/httpd/modules/mod_jk.so"
workersConfig="/etc/httpd/conf/workers.properties" />

  <GlobalNamingResources>

    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved"
           factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
          pathname="conf/tomcat-users.xml" />

  </GlobalNamingResources>

  <Service name="Catalina">


    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector port="8080" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="8443" acceptCount="100"
               connectionTimeout="20000" disableUploadTimeout="true" />

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009"
               enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">


      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>


<!--Added by Sriganesh on 04/16-->
<!-- Define the virtual host -->
      <Host name="192.168.1.23" debug="1" appBase="/var/www/testapp"
unpackWARs="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="oss_access_log." suffix=".txt"
                 pattern="common"/>

        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="oss.com_log." suffix=".txt"
                timestamp="true"/>

        <Context path="" docBase="" debug="0"
                 reloadable="false" crossContext="true">

        <Logger className="org.apache.catalina.logger.FileLogger"
                     prefix="oss_ROOT_log." suffix=".txt"
                  timestamp="true"/>
        </Context>

      </Host>

<!--End editing-->


      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">

      </Host>

    </Engine>

  </Service>

</Server>


Following is the context.xml content:
-------------------------------------------------------
<Context>
    <!-- Default set of monitored resources -->
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
    <!-- Uncomment this to disable session persistence across Tomcat
restarts -->
    <!--
    <Manager pathname="" />
    -->
</Context>

Thank you again for your help.

Regards
Sriganesh


On Thu, Apr 23, 2009 at 12:35 PM, Caldarale, Charles R
<chuck.caldar...@unisys.com> wrote:
>> From: Sriganesh Ananth [mailto:sriganesh.anant...@gmail.com]
>> Subject: Tomcat migration 4.1.3 to 5.5.23: Tomcat5.5 searching servlet
>> file in file system and reporting 404 error rather mapping in web.xml
>>
>> The issue is Tomcat 5.5.x looks for a servlet file under server's
>> physical file system and reporting HTTP 404 error rather than going to
>> the servlet mapping in web.xml.
>
> Post your server.xml file and the file containing the <Context> element for 
> your webapp.  If you made the mistake of blindly copying your 4.1 server.xml 
> file to 5.5, throw away what you did and start over.  There are numerous 
> syntactic and semantic changes in 5.5 that are best handled by modifying the 
> default 5.5 server.xml file to suit your requirements rather than trying to 
> modify a 4.1 server.xml file to work with 5.5.
>
> I suspect you have an invalid <Host> and <Context> combination, but only if 
> you post that can we tell for sure.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL and is thus for use only by the intended recipient. If you received 
> this in error, please contact the sender and delete the e-mail and its 
> attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to