tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nagulapalli, Srinivas" <>
Subject RE: Difference in behavior between Tomcat 6.0.18 and 6.0.20
Date Thu, 04 Nov 2010 21:35:09 GMT
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"
	<Resource name="jdbc/MYPROJECT" auth="Container"
		description="MYPROJECT Application Database"/>	


-----Original Message-----
From: Konstantin Kolinko [] 
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 <>:
> 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,

> 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:
For additional commands, e-mail:

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:
For additional commands, e-mail:

View raw message