6 Replies Latest reply on Jun 20, 2013 11:39 AM by howardl815

    cluster-ha-singleton example

    howardl815

      Hi,

       

      I'm really interested in this example, and was trying out on AS 7.1.1. When I tried to deploy it, I got the below error message.

       

      [Server:server-three] JBAS014775:    New missing/unsatisfied dependencies:

      [Server:server-three]       service jboss.naming.context.java.comp.jboss-as-cluster-ha-singleton-service.jboss-as-cluster-ha-singleton-service.SchedulerBean (missing) dependents: [service jboss.naming.context.java.comp.jboss-as-cluster-ha-singleton-service.jboss-as-cluster-ha-singleton-service.SchedulerBean.HandleDelegate, service jboss.naming.context.java.comp.jboss-as-cluster-ha-singleton-service.jboss-as-cluster-ha-singleton-service.SchedulerBean.ORB, service jboss.naming.context.java.comp.jboss-as-cluster-ha-singleton-service.jboss-as-cluster-ha-singleton-service.SchedulerBean.Validator, service jboss.naming.context.java.comp.jboss-as-cluster-ha-singleton-service.jboss-as-cluster-ha-singleton-service.SchedulerBean.ValidatorFactory]

       

      Is this because I'm using AS 7.1.1?

       

      Also I have a clustered set up (master/slave), and do I deploy this app. to the "other-server-group" (full-ha profile)? Or do I just deploy to "main-server-group" (full profile)?

       

      Thank you very much for any help.

        • 1. Re: cluster-ha-singleton example
          wdfink

          Do you use the JBoss Quickstart?

           

          As you try to deploy a HA example you need to start a *-ha configuration!

          Which example do you use?

          • 2. Re: cluster-ha-singleton example
            erasmomarciano

            Hi

            How many servers are part of the group "other-server-group" ?

             

            what it means  "have a clustered set up (master/slave)," ?

             

            Your web-app it works in mode standalone?

             

             

            • 3. Re: cluster-ha-singleton example
              howardl815

              Hi,

               

              I have one logical server (server-three) that is a part of other-server-group, and two physical servers are in server-three. I have as 7.1.1 deployed on one machine as a master and deployed on another machine (two physically separate machine) as a slave. When I open admin page, I see server-one and server-two are in main-server-group and server-three is in other-server-group (full-ha profile). I deployed the app. onto the other-server-group (full-ha profile).

               

              I'm using hasingleton example. Thank you very much for any help.

              • 4. Re: cluster-ha-singleton example
                howardl815

                Hi Wolf-Dieter,

                 

                I was trying the example you wrote (cluster-ha-singleton: A SingletonService deployed in a JAR started by SingletonStartup and accessed by an EJB - See more at: http://www.jboss.org/jdf/quickstarts/jboss-as-quickstart/cluster-ha-singleton/#sthash.RLLnqYIS.dpuf)

                 

                I think I've started *-ha configuration by starting the server-three which is a part of other-server-group. Am I missing something? Thank you very much for any help.

                • 5. Re: cluster-ha-singleton example
                  wdfink

                  There is an incompatible change between 7.1 and 7.2

                   

                  You need to change the pom dependency in the root pom of the quickstart.

                  This should work for 7.1.x and EAP6.0x. If not change the version for AS7.1.2/3 or use the EAP lines below that change.

                   

                  @@ -50,7 +50,7 @@

                          

                           <version.jboss.maven.plugin>7.3.Final</version.jboss.maven.plugin>

                   

                  -        <version.jboss.as>7.2.0.Final</version.jboss.as>

                  +        <version.jboss.as>7.1.1.Final</version.jboss.as>

                           <!-- Alternatively, comment out the above line, and un-comment the

                  • 6. Re: cluster-ha-singleton example
                    howardl815

                    Thank you very much Wolf. I'll try it. Thanks again!