Many thanks for the tip. Didn't realize how much context file changed. Changed 
context.xml like below and it deploys fine now in 6.0.20. 
Going to check and test more. Please tell if I am missing out on limb still.

Changed contents of MYPROJECT.xml that deploys fine:
==================================================
<Context debug="2" reloadable="true" crossContext="true">
        <Logger className="org.apache.catalina.logger.FileLogger"
                prefix="MYPROJECT_log." suffix=".txt"
                timestamp="true"/>
        <Resource name="jdbc/MYPROJECT" auth="Container"
                type="javax.sql.DataSource"
                description="MYPROJECT Application Database"/>  

</Context>


-----Original Message-----
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Thursday, November 04, 2010 5:19 PM
To: Tomcat Users List
Subject: Re: Difference in behavior between Tomcat 6.0.18 and 6.0.20

2010/11/4 Nagulapalli, Srinivas <srinivas.nagulapa...@starwoodvo.com>:
> Forgot to put contents of application's context.xml. Still no difference
> in contents between 6.0.18 and 6.0.20- same file listed under
> %TOMCAT_HOME%\conf\Catalina\localhost\MYPROJECT.xml for both versions
>

A lot is wrong with your context file. Please read the docs,
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html


> Contents of MYPROJECT.XML :
> ============================
> <!-- The contents of this file will be loaded for each web application
> -->
> <DefaultContext debug="2" reloadable="true" crossContext="true">

The root element must be <Context>

>
>        <Logger className="org.apache.catalina.logger.FileLogger"
>                prefix="MYPROJECT_log." suffix=".txt"
>                timestamp="true"/>
>
>        <Resource name="jdbc/MYPROJECT" auth="Container"
>                type="javax.sql.DataSource"
>                description="MYPROJECT Application Database"/>
>
>        <ResourceParams name="jdbc/MYPROJECT">

There is no <ResourceParams> tag in Tomcat 6.0, nor in 5.5.

>                <parameter>
>                        <name>factory</name>
>
> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
>                </parameter>
>
>                <parameter>
>                        <name>removeAbandoned</name>
>                                <value>true</value>
>                </parameter>
>
>                <parameter>
>                        <name>removeAbandonedTimeout</name>
>                                <value>60</value>
>                </parameter>
>        </ResourceParams>
>
>        <Valve className="org.apache.catalina.valves.AccessLogValve"
>         prefix="MYPROJECT_access_log." suffix=".txt"
>         pattern="common"/>
> </DefaultContext>
>

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



This electronic message transmission contains information from the Company that 
may be proprietary, confidential and/or privileged. 
The information is intended only for the use of the individual(s) or entity 
named above.  If you are not the intended recipient, be 
aware that any disclosure, copying or distribution or use of the contents of 
this information is prohibited.  If you have received 
this electronic transmission in error, please notify the sender immediately by 
replying to the address listed in the "From:" field. 


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

Reply via email to