CLI commands that update domain.xml file delete the XML comments

Solution Verified - Updated -

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:

  1. Stop all EAP processes
  2. Add comments and comment out some lines in domain.xml file
  3. Start EAP
  4. Start CLI
  5. Deploy app (.war file) or run any other CLI command that would update domain.xml
  6. 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content