9 Replies Latest reply on Mar 19, 2014 6:23 AM by rhusar

    Cluster with JBoss AS 7

    vineetk

      Hello,

       

      I am new to JBoss AS 7.

      I am trying to setup a cluster with JBoss 7. I have a web application which I want to deploy on a cluster.

       

      I have followed the guide "https://docs.jboss.org/author/display/AS71/AS7+Cluster+Howto" for cluster setup.

       

      Details of setup:

       

      Master : 10.74.80.252

      Slave : 10.74.81.95

      Httpd : 10.74.80.252

       

      I am not able to deploy my application on "other-server-group" using management console.

       

      I have attached the domain.xml, host.xml and httpd.conf file of the master and host.xml file of the slave (I have renamed domain.xml on the slave) with the post.

       

      Request you to please guide me with the problem resolution.

       

      Regards,

      Vineet

        • 1. Re: Cluster with JBoss AS 7
          rhusar

          Why are you not able to deploy? What is the problem?

          • 2. Re: Cluster with JBoss AS 7
            vineetk

            While deploying on "other-server-group" I get the following exception and the deployment get rolled back.

             

            Exception:

             

            ERROR [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 12) JBAS014612: Operation ("composite") failed - address: ([]): java.lang.IllegalArgumentException
            at org.jboss.dmr.ModelValue.getChild(ModelValue.java:108) [jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
            at org.jboss.dmr.ModelNode.get(ModelNode.java:798) [jboss-dmr-1.1.1.Final.jar:1.1.1.Final]
            at org.jboss.as.domain.controller.operations.coordination.DomainFinalResultHandler.collectHostFailures(DomainFinalResultHandler.java:158) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.domain.controller.operations.coordination.DomainFinalResultHandler.execute(DomainFinalResultHandler.java:80) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.domain.controller.operations.coordination.OperationCoordinatorStepHandler.executeTwoPhaseOperation(OperationCoordinatorStepHandler.java:225) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.domain.controller.operations.coordination.OperationCoordinatorStepHandler.execute(OperationCoordinatorStepHandler.java:118) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.domain.controller.operations.coordination.PrepareStepHandler.execute(PrepareStepHandler.java:85) [jboss-as-host-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:121) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:309) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.controller.ModelControllerImpl$1.execute(ModelControllerImpl.java:299) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:294) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.domain.http.server.DomainApiHandler.doHandle(DomainApiHandler.java:201) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:208) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handle(SubjectAssociationHandler.java:51) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
            at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:69)
            at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
            at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:710)
            at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
            at org.jboss.as.domain.http.server.RealmReadinessFilter.doFilter(RealmReadinessFilter.java:54) [jboss-as-domain-http-interface-7.1.1.Final.jar:7.1.1.Final]
            at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
            at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_10]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_10]
            at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_10]
            at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]

             

             

            • 3. Re: Cluster with JBoss AS 7
              jahoshai

              I am also facing the same issue... Did you got the solution on how to fix this issue?

              • 4. Re: Cluster with JBoss AS 7
                rhusar

                Can you guys try to reproduce with EAP 6.1.0.Alpha1? http://www.jboss.org/jbossas/downloads

                • 5. Re: Cluster with JBoss AS 7
                  jahoshai

                  Sorry for the delay in response...

                   

                  This issue was fixed.

                  Actually my deployment was failing on slave node due to some other issues.

                  So if i keep on trying deploying and undeploying on the server-group, after few attempts it started giving the above exception on the master node.

                   

                  Dont know the exact reason why it beahves like that but after i fixed the deployment issues on the slave node, it started working fine.

                  • 6. Re: Cluster with JBoss AS 7
                    liverpoolilove

                    hi jahoorulla!

                              Your slave node on the the domain.xml delete or rename it?
                    If you delete or rename, go running on the slave Node domain.bat will not complain? My version is jboss as 7.1.1 Final. Look forward to your reply, thank you!

                     

                    • 7. Re: Cluster with JBoss AS 7
                      jahoshai

                      Hi Michael,

                       

                      Sorry for the late reply. Was in a long vacation.

                      You dont need to delete or rename your domain.xml on slave node.

                      You can just point your domain controller to the master node in host.xml.

                      • 8. Re: Cluster with JBoss AS 7
                        spliakos

                        You never mentioned what was the problem (other deployment issues) and how you fixed them.

                        It would be good since there are other people facing the same prob

                        • 9. Re: Cluster with JBoss AS 7
                          rhusar

                          Sounds like you may want to start your own thread. Not so useful information on this one.