Bug 1115805

Summary: Tomcat7 store-config destroys server.xml
Product: [JBoss] JBoss Enterprise Web Server 2 Reporter: Libor Fuka <lfuka>
Component: tomcat7Assignee: Jean-frederic Clere <jclere>
Status: CLOSED EOL QA Contact: Libor Fuka <lfuka>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.1.0CC: jclere, jdoyle, mturk, myarboro, pslavice, rsvoboda, weli
Target Milestone: ER04   
Target Release: 2.1.0   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-13 08:08:57 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: 956509    

Description Libor Fuka 2014-07-03 07:29:13 UTC
Description of problem:
The tomcat7-storeconfig-0.0.1.Alpha3-redhat-4.jar in ER4 tomcat7/lib/extra directory completely destroys Tomcat7 server.xml.

It does not happed in ER3 where was a version tomcat7-storeconfig-0.0.1.Alpha3-redhat-3.jar
It also does not happend in ER4 Tomcat6 tomcat6-storeconfig-0.0.1.Alpha3-redhat-12.jar

Comment 2 Libor Fuka 2014-07-03 08:02:27 UTC
Affected bits: http://download.devel.redhat.com/devel/candidates/JBEWS/2.1.0.ER4/

Steps to reproduce:
1. Install and start JON server 3.2.0.GA
2. Install updated Tomcat plugin from BZ 1111666 to JON server 
3. INstall and start JON 3.2.0 agent 
4. Install EWS 2.1.0-ER4
5. Configure Tomcat7 - enable jmx and add storeconfig listener, copy storeconfig jar to tomcat7/lib
6. Start Tomcat7
7. Import it to JON
8. Change configuration of some deployed application (or any connector) and save

Comment 3 Jean-frederic Clere 2014-07-03 08:36:26 UTC
Quicker way to test.
1 - Start Tomcat7
2 - Use jconsole locally and connect to the tomcat process.
3 - Change something in any connector.
4 - Go to StorecCnfig and use storeConfig operation.

+++
[jfclere@jfcpc build]$ ls -lt conf/server.xml
-rw-rw-r--. 1 jfclere jfclere 0 Jul  3 10:31 conf/server.xml
+++

Comment 4 Libor Fuka 2014-07-18 15:02:55 UTC
VERIFIED with EWS 2.1.0-ER4

Comment 5 Mandar Joshi 2014-08-11 12:46:34 UTC
Removing this bz from EWS 2.1 release notes.

Setting the requires_doc_text flag to -