Bug 1042811

Summary: tomcat6 service restarts will cause a duplicated command-line arguments
Product: Red Hat Enterprise Linux 6 Reporter: Dasharath Masirkar <dmasirka>
Component: tomcat6Assignee: David Knox <dknox>
Status: CLOSED ERRATA QA Contact: tomcat-qe
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: fgoldefu, jclere, jstourac, pslavice, rhatlapa, tlavigne
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tomcat6-6.0.24-89.el6 Doc Type: Bug Fix
Doc Text:
Previously, the tomcat6 service restart incorrectly caused duplication in JVM command-line arguments, and the "-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory" duplicate argument appeared. This has been fixed, and tomcat6 now starts without duplicate JVM arguments.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-22 07:27:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1075802    

Description Dasharath Masirkar 2013-12-13 12:36:05 UTC
Description of problem:
tomcat6 service restarts will cause a duplicated command-line arguments

Version-Release number of selected component (if applicable):
tomcat 6

How reproducible:
always

Steps to Reproduce:
1. [root@localhost ~]# service tomcat6 restart

Stopping tomcat6:                                          [  OK  ]
Starting tomcat6:                                          [  OK  ]


2. [root@localhost ~]# service tomcat6 status

tomcat6 (pid 3243) is running...                           [  OK  ]

3. [root@localhost ~]# ps -ef | grep 3243

tomcat    3243     1  5 17:13 ?        00:00:01 /usr/lib/jvm/java/bin/java -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory -classpath :/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/usr/share/tomcat6 -Dcatalina.home=/usr/share/tomcat6 -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/cache/tomcat6/temp -Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
root      3378  2495  0 17:13 pts/1    00:00:00 grep 3243

4. [root@localhost ~]# tr \\0 \\n </proc/3243/cmdline

/usr/lib/jvm/java/bin/java

-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory

-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory

-classpath
:/usr/share/tomcat6/bin/bootstrap.jar:/usr/share/tomcat6/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar
-Dcatalina.base=/usr/share/tomcat6
-Dcatalina.home=/usr/share/tomcat6
-Djava.endorsed.dirs=
-Djava.io.tmpdir=/var/cache/tomcat6/temp
-Djava.util.logging.config.file=/usr/share/tomcat6/conf/logging.properties
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
org.apache.catalina.startup.Bootstrap
start

Actual results:
The tomcat6 will get start with below duplicate jvm argument.

-Djavax.sql.DataSource.Factory=org.apache.commons.dbcp.BasicDataSourceFactory


Expected results:

The tomcat6 has to start without duplicate jvm argument


Additional info:

Comment 4 fgoldefu 2015-04-08 07:15:53 UTC
Last build from Errata RHBA-2015:20040-02 (tomcat6-6.0.24-88.el6) brings back this bug => regression.

Comment 7 Jan Stourac 2015-06-04 09:10:39 UTC
Test passed -> verified.

Comment 9 errata-xmlrpc 2015-07-22 07:27:36 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1461.html