Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5110

Destructive Change to the .xml file ie Losing comments in the file.

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 7.1.2.Final (EAP)
    • Fix Version/s: None
    • Component/s: Console
    • Labels:

      Description

      Run the following commands with a clean EAP install:
      ./domain.sh --host-config=host-master.xml

      Edit the host-slave.xml file, by changing the default 9999 port to 29999 as shown:

      <native-interface security-realm="ManagementRealm">
      <socket interface="management" port="${jboss.management.native.port:29999}"/>
      </native-interface>

      Start up the host slave:
      ./domain.sh --host-config=host-slave.xml -Djboss.domain.master.address=127.0.0.1

      Create a generic admin user of your choosing.

      Look at the host-slave.xml file and note this section:
      <!-- server-two avoids port conflicts by incrementing the ports in
      the default socket-group declared in the server-group -->
      Add in an auto-start="true" flag as shown:
      <server name="server-two" group="other-server-group" auto-start="true">
      <!-- server-two avoids port conflicts by incrementing the ports in
      the default socket-group declared in the server-group -->
      <socket-bindings port-offset="150"/>
      </server>

      Change in the console auto start to false:

      Now more the contents of the host-slave.xml file:

      <server name="server-two" group="other-server-group" auto-start="false">
      <socket-bindings port-offset="150"/>
      </server>

      Note your comments are gone.

      Imagine I was an admin for whatever reason and I had commented out a section and it was now removed. This is kind of bad.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dlofthouse Darran Lofthouse
                  Reporter:
                  jtyrrell Jim Tyrrell
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: