CLI commands that update domain.xml file delete the XML comments
Issue
- When running any CLI command that updates the file domain.xml, like deployment of an application, the updated file has all the commented out line deleted.
How can I avoid this?
Below is the sequence of steps:
- Stop all EAP processes
- Add comments and comment out some lines in domain.xml file
- Start EAP
- Start CLI
- Deploy app (.war file) or run any other CLI command that would update domain.xml
- Check domain.xml file --> all comments and commented out lines have been removed
Environment
- Red Hat JBoss Enterprise Application Platform
- 7.2.9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.