7 Replies Latest reply on Jan 24, 2013 4:52 AM by Wolf-Dieter Fink

    JBoss AS 7.1 clustering mode

    Bharat Savanur Newbie

          Hi All,

       

      I am trying to run the JBoss7 in cluster mode which is not domain based. When i try to run the servee by chaing the IP address i a, getting the following error:

       

      vice.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.2.0.Alpha1-SNAPSHOT.

      7.2.0.Alpha1-SNAPSHOT]

              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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_18]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_18]

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_18]

       

       

      23:19:52,905 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service

      23:19:52,927 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-4) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.12.Final)

      23:19:52,851 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.network.public: org.jboss.msc.ser

      .StartException in service jboss.network.public: JBAS015810: failed to resolve interface public

              at org.jboss.as.server.services.net.NetworkInterfaceService.start(NetworkInterfaceService.java:97) [jboss-as-server-7.2.0.Alpha1-SNAPSHOT.

      7.2.0.Alpha1-SNAPSHOT]

              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$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_18]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_18]

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_18]

       

      I have run the JBoss app server using IP 127.0.0.2 and i have edited this in etc/hosts.xml.

       

      I use the following configuration to run the server:standalone.bat -c standalone-ha.xml -b 127.0.0.2 -Djboss.server.base.dir=../standalone-node2

       

       

      Can you please let me know where i am going wrong.

        • 1. Re: JBoss AS 7.1 clustering mode
          Justin Bertram Master

          Is 127.0.0.2 an actual interface defined on your box?  Based on the ERROR you are receiving it doesn't appear that it is.

          1 of 1 people found this helpful
          • 2. Re: JBoss AS 7.1 clustering mode
            Bharat Savanur Newbie

            Hi Justin,

             

            For Windows7 i have defined 127.0.0.2 IP mapped to local host. Would this suffice or should we also add something more to get it werking on windows 7?

             

            Thanks and Regards,

            Bharat Savanur

            • 3. Re: JBoss AS 7.1 clustering mode
              Wolf-Dieter Fink Master

              JBoss 7.1 will not work together with the IP address 127.0.0.2. This is because of the internal check.

              You can use 127.0.0.1 or your real IP address.

              If you need more server or do not want to use the public IP you may use port-offset or edit the ports direct inside the configuration.

              1 of 1 people found this helpful
              • 4. Re: JBoss AS 7.1 clustering mode
                Bharat Savanur Newbie

                Thanks Wolf and Justin for your help.

                I was able to set up cluster environment.

                 

                THanks and Regards,

                Bharat Savanur

                • 5. Re: JBoss AS 7.1 clustering mode
                  Manish Devraj Newbie

                  I am encountering similar error when running Jboss domain mode cluster (different machines) Master 10.0.10.70 and Slave 10.0.10.46

                   

                  I have confirmed that Master is discoverable and not under Firewall running 9999 and 9990 ports on metioned IP address. Also created security realm on domain controller and added them to host controller.

                   

                  Domain controller

                  >> ./domain.sh -b 10.0.10.70 -bmanagement 10.0.10.70

                   

                  Host Controller

                   

                  >> ./domain.sh -b 10.0.10.46 -bmanagement 10.0.10.46 -Djboss.domain.master.address=10.0.10.70 -Djboss.domain.master.port=9999

                   

                   

                  Host Controller log output

                   

                  =========================================================================

                  JBoss Bootstrap Environment

                   

                   

                    JBOSS_HOME: /opt/dev/jboss-as-7.1.1.Final

                   

                   

                    JAVA: java

                   

                   

                    JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.domain.default.config=domain.xml -Djboss.host.default.config=host.xml

                   

                   

                  =========================================================================

                   

                   

                  17:47:43,206 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA

                  17:47:43,274 INFO  [org.jboss.as.process.Host Controller.status] (main) JBAS012017: Starting process 'Host Controller'

                  [Host Controller] 17:47:43,576 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA

                  [Host Controller] 17:47:43,652 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA

                  [Host Controller] 17:47:43,701 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting

                  [Host Controller] 17:47:44,059 INFO  [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.3.GA

                  [Host Controller] 17:47:44,066 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.3.GA

                  [Host Controller] 17:47:44,065 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.network.management: org.jboss.msc.service.StartException in service jboss.network.management: JBAS015810: failed to resolve interface management

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

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

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

                  [Host Controller]       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]

                  [Host Controller]       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]

                  [Host Controller]       at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]

                  [Host Controller]

                  [Host Controller] 17:47:44,072 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 3.2.3.GA

                  [Host Controller] 17:47:44,092 INFO  [org.jboss.as.controller] (MSC service thread 1-6) JBAS014774: Service status report

                  [Host Controller] JBAS014777:   Services which failed to start:      service jboss.network.management: org.jboss.msc.service.StartException in service jboss.network.management: JBAS015810: failed to resolve interface management

                  [Host Controller]

                  17:52:00,870 INFO  [org.jboss.as.process] (Shutdown thread) JBAS012016: Shutting down process controller

                  17:52:00,871 INFO  [org.jboss.as.process.Host Controller.status] (Shutdown thread) JBAS012018: Stopping process 'Host Controller'

                  [Host Controller] 17:52:00,883 INFO  [org.jboss.as] (MSC service thread 1-3) JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 10ms

                  17:52:00,890 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) JBAS012010: Process 'Host Controller' finished with an exit status of 130

                  17:52:00,891 INFO  [org.jboss.as.process] (Shutdown thread) JBAS012015: All processes finished; exiting

                  • 6. Re: JBoss AS 7.1 clustering mode
                    Radoslav Husar Master

                    Double check your machine setup, looks like 10.0.10.46 is not defined correctly on the machine. Also double check your IPv4/6 preference.

                    • 7. Re: JBoss AS 7.1 clustering mode
                      Wolf-Dieter Fink Master

                      You may use telnet <ip> 9999 to check whether the host is reacable