You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Nagulapalli, Srinivas" <Sr...@starwoodvo.com> on 2010/11/04 19:52:42 UTC

Difference in behavior between Tomcat 6.0.18 and 6.0.20

I can deploy an old Java web application to Tomcat 6.0.18 using (Java
JDK 1.5.0.22) fine.

However, get error deploying same application to Tomcat 6.0.20. Cannot
deploy to any Tomcat later either, like
all Tomcat 6.0.24, 6.0.26, 6.0.28 and 6.0.29 versions give me same error
message:

 "Error deploying configuration descriptor MyProject.xml"

 

 The application's web.xml uses web-app_2.3.dtd with following:

<!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN'

      'http://java.sun.com/dtd/web-app_2_3.dtd'>

 

 I noticed all sixteen jar files in %TOMCAT_HOME%\lib folder are
different between 6.0.18 and 6.0.20

 Not sure what change might be causing this.

 

 I appreciate any insights/pointers or help.

 

 Thanks much

 -Srini

 



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. 

Re: Difference in behavior between Tomcat 6.0.18 and 6.0.20

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/11/5 Nagulapalli, Srinivas <Sr...@starwoodvo.com>:
> 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">

"debug" attribute is not used anymore

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

Logger element is not supported.

>        <Resource name="jdbc/MYPROJECT" auth="Container"
>                type="javax.sql.DataSource"
>                description="MYPROJECT Application Database"/>

OK, but you will want to add other properties (such as driver,
connection url, username, password), see docs.

You may add back the AccessLogValve. It was OK.

> </Context>
>

Best regards,
Konstantin Kolinko

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


RE: Difference in behavior between Tomcat 6.0.18 and 6.0.20

Posted by "Nagulapalli, Srinivas" <Sr...@starwoodvo.com>.
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.kolinko@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 <Sr...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Difference in behavior between Tomcat 6.0.18 and 6.0.20

Posted by Konstantin Kolinko <kn...@gmail.com>.
2010/11/4 Nagulapalli, Srinivas <Sr...@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Difference in behavior between Tomcat 6.0.18 and 6.0.20

Posted by "Nagulapalli, Srinivas" <Sr...@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

Contents of MYPROJECT.XML :
============================
<!-- The contents of this file will be loaded for each web application
-->
<DefaultContext 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"/>

	<ResourceParams name="jdbc/MYPROJECT">
		<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>


-----Original Message-----
From: Nagulapalli, Srinivas [mailto:Srinivas.Nagulapalli@starwoodvo.com]

Sent: Thursday, November 04, 2010 4:48 PM
To: Tomcat Users List
Subject: RE: Difference in behavior between Tomcat 6.0.18 and 6.0.20

No difference in context.xml file for Tomcat-6.0.18 and 6.0.20-both have
following:

<Context>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
<Context>

Thanks for any pointers.
-Srini


-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Thursday, November 04, 2010 4:41 PM
To: Tomcat Users List
Subject: Re: Difference in behavior between Tomcat 6.0.18 and 6.0.20

On 04/11/2010 16:35, Nagulapalli, Srinivas wrote:
> Nov 4, 2010 4:28:05 PM org.apache.catalina.startup.HostConfig
deployWAR
> SEVERE: Error deploying configuration descriptor MYPROJECT.war

And the contexts of your context.xml file is what?

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Difference in behavior between Tomcat 6.0.18 and 6.0.20

Posted by "Nagulapalli, Srinivas" <Sr...@starwoodvo.com>.
No difference in context.xml file for Tomcat-6.0.18 and 6.0.20-both have
following:

<Context>
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
<Context>

Thanks for any pointers.
-Srini


-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Thursday, November 04, 2010 4:41 PM
To: Tomcat Users List
Subject: Re: Difference in behavior between Tomcat 6.0.18 and 6.0.20

On 04/11/2010 16:35, Nagulapalli, Srinivas wrote:
> Nov 4, 2010 4:28:05 PM org.apache.catalina.startup.HostConfig
deployWAR
> SEVERE: Error deploying configuration descriptor MYPROJECT.war

And the contexts of your context.xml file is what?

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Difference in behavior between Tomcat 6.0.18 and 6.0.20

Posted by Mark Thomas <ma...@apache.org>.
On 04/11/2010 16:35, Nagulapalli, Srinivas wrote:
> Nov 4, 2010 4:28:05 PM org.apache.catalina.startup.HostConfig deployWAR
> SEVERE: Error deploying configuration descriptor MYPROJECT.war

And the contexts of your context.xml file is what?

Mark



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


RE: Difference in behavior between Tomcat 6.0.18 and 6.0.20

Posted by "Nagulapalli, Srinivas" <Sr...@starwoodvo.com>.
I am stumped. I see in Catalina.log only the cryptic error message like
below. No error in localhost.log file.Don't know what I might be
missing. 
What is baffling is, same application gets deployed fine in Tomcat
6.0.18 and earlier.

Thanks for any pointers.
-Srini

Contents of Catalina.log:
Nov 4, 2010 4:28:04 PM org.apache.catalina.core.AprLifecycleListener
init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\WINDOWS\system32;....(sniped for brevity)
Nov 4, 2010 4:28:04 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Nov 4, 2010 4:28:04 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 706 ms
Nov 4, 2010 4:28:05 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Nov 4, 2010 4:28:05 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Nov 4, 2010 4:28:05 PM org.apache.catalina.startup.HostConfig
deployDescriptor
SEVERE: Error deploying configuration descriptor MYPROJECT.xml
Nov 4, 2010 4:28:05 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive MYPROJECT.war
Nov 4, 2010 4:28:05 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying configuration descriptor MYPROJECT.war


-----Original Message-----
From: Mark Thomas [mailto:markt@apache.org] 
Sent: Thursday, November 04, 2010 3:23 PM
To: Tomcat Users List
Subject: Re: Difference in behavior between Tomcat 6.0.18 and 6.0.20

On 04/11/2010 14:52, Nagulapalli, Srinivas wrote:
>  I appreciate any insights/pointers or help.

Look at the logs.

Mark

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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Difference in behavior between Tomcat 6.0.18 and 6.0.20

Posted by Mark Thomas <ma...@apache.org>.
On 04/11/2010 14:52, Nagulapalli, Srinivas wrote:
>  I appreciate any insights/pointers or help.

Look at the logs.

Mark



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