5 Replies Latest reply on Oct 26, 2012 1:25 PM by wdfink

    How to change management host name in standalone.xml?

    connie.yang

      Hi,

       

      I'm running JBoss AS 7 in standalone mode and would like to start the server with a different host name and port.  How do I do that?

       

      I've tried using the "-b" and "-b<name>" parameters with no success.  I've also modified the standalone.xml file to use either the IP or the host name.  Again, no success.  I got the following exception when doing that,

       

      18:48:45,856 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA

      18:48:45,867 ERROR [org.jboss.msc.service.fail] MSC00001: Failed to start service jboss.network.management: org.jboss.msc.service.StartException in service jboss.network.management: JBAS015810: failed to resolve interface management

          at org.jboss.as.server.services.net.NetworkInterfaceService.start(NetworkInterfaceService.java:97) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_07]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_07]

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_07]

        • 1. Re: How to change management host name in standalone.xml?
          wdfink

          In AS7 there are two interfaces, application (e.g. 8080 and 4447) and management (e.g. 9990 and 9999).

          The default is 'localhost 127.0.0.1' for both if you want to change you can use the command line option '-b <ip app> -bmanagement <ip mngmt>

          Or you change the interface section in the standalone.xml

           

          Port change is very simple, you might add '-Djboss.socket.binding.port-offset=100' to add an offset of 100 for each port.

          Or you might change each single port in the socket-binding section of the configuration if you want to have special portnumbers.

          • 2. Re: How to change management host name in standalone.xml?
            erasmomarciano

            Hi

             

            If you want to change the values into the configuration file  standolone.xml

             

             

            you check this part

             

              <interfaces>

                    <interface name="management">

                        <inet-address value="${jboss.bind.address.management:127.0.0.1}"/>

                    </interface>

                    <interface name="public">

                        <inet-address value="${jboss.bind.address:127.0.0.1}"/>

                    </interface>

                    <interface name="unsecure">

                        <inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/>

                    </interface>

                </interfaces>

            • 3. Re: How to change management host name in standalone.xml?
              dlofthouse

              One point to remember is that the host name or IP address you specify need to be valid on the host that you are running JBoss AS i.e. the host name must have already been mapped to an IP address on that machine before you even start JBoss.

              • 4. Re: How to change management host name in standalone.xml?
                connie.yang

                I would like to change the standalone.xml.  For automation purposes, can the host name be a variable?

                • 5. Re: How to change management host name in standalone.xml?
                  wdfink

                  The variable is still in place, you can use the parameter '-Djboss.bind.address.management=x.x.x.x -Djboss.bind.address=x.x.x.x' if you run standalone.sh