Date of First Response: 2010-02-08 11:01:38 project_key: JBEWS The Tomcat web administration tool persists the changes to the config files. Upon save, it presumably dumps a XML DOM to the xml file, and these are the side effects: * All comments disappear * Formatting is different * Some attributes disappear - <Server port="8005" shutdown="SHUTDOWN"> becomes just <Server> <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> Becomes <Host> * Some attributes are added. <Context docBase="${catalina.home}/server/webapps/host-manager" privileged="true" antiResourceLocking="false" antiJARLocking="false"></Context> becomes <Context docBase="C:/Program Files/Red Hat/Enterprise Web Server/share/tomcat5/server/webapps/host-manager" privileged="true"> <Listener className="org.apache.catalina.startup.TldConfig"/> <Listener className="org.apache.catalina.startup.TldConfig"/> <Listener className="org.apache.catalina.startup.TldConfig"/> </Context> etc. etc. The process breaks admin.xml: <Context docBase="${catalina.home}/server/webapps/admin" privileged="true" antiResourceLocking="false" antiJARLocking="false"> <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true"/> </Context> becomes: <Context docBase="C:/Program Files/Red Hat/Enterprise Web Server/share/tomcat5/server/webapps/admin" privileged="true"> <Listener className="org.apache.catalina.startup.TldConfig"/> <Listener className="org.apache.catalina.startup.TldConfig"/> <Listener className="org.apache.catalina.startup.TldConfig"/> </Context> See the attachments. (issue in progress).
Attachment: Added: EWS-Tomcat-Admin-impairs-config-files.png
Attachment: Added: JBPAPP-3678-diff.zip
Note that the zip files also contain changes done manually, but only few - e.g. SSL config etc. The issue is still recognizable.
Attachment: Removed: JBPAPP-3678-diff.zip
Link: Added: This issue depends JBQA-3040
Link: Added: This issue is incorporated by JBQA-3040
Link: Removed: This issue depends JBQA-3040
Is this also an issue in upstream tomcat download?
Since this is minor, we'll move this to EWS 1.0.2.
Marking as duplicate of JBPAPP-3685. As I noticed there that it also removes SSL configuration, I am marking this as a blocker. I recommend to either remove the admin application, or fix it not to remove any attributes.
Duplicate of JBPAPP-3685 as there's a discussion of the productization process.
Link: Added: This issue is duplicated by JBPAPP-3685
Hey Ondra, Looking at other tomcat admin app issues I'm not sure these will be fixed but if you believe these glitches need fixing, please file a bugzilla at https://issues.apache.org
Hi Alex, I think that BZ's linked in https://jira.jboss.org/browse/JBPAPP-3685 cover this sufficiently.