8 Replies Latest reply on Dec 24, 2002 7:00 AM by stefus

    Problem Starting ClusteredHttpSession

    stefus

      I have the following error when I start a new cluster node in my own partition called MyPartition:

      ###### Begin ############################################
      MBeans waiting for other MBeans:
      [ObjectName: jboss:service=ClusteredHttpSession
      state: CONFIGURED
      I Depend On: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession

      Depends On Me: , ObjectName: jboss.j2ee:service=EJB,jndiName=clustering/HTTPSession
      state: NOTYETINSTALLED
      I Depend On: jboss:service=DefaultPartition
      jboss:service=invoker,type=jrmp

      Depends On Me: jboss:service=ClusteredHttpSession

      ############# End #######################################

      What did I wrong, I change alle the ports in the conf, xml, properties files and change the cluster-service.xml as fallowing:

      ######## Begin cluster-service.xml ######################
      <?xml version="1.0" encoding="UTF-8"?>

      <!-- ===================================================================== -->
      <!-- -->
      <!-- Sample Clustering Service Configuration -->
      <!-- -->
      <!-- ===================================================================== -->






      <!-- ==================================================================== -->
      <!-- Cluster Partition: defines cluster -->
      <!-- ==================================================================== -->


      MyPartition
      True


      <!-- ==================================================================== -->
      <!-- HA Session State Service for SFSB -->
      <!-- ==================================================================== -->


      jboss:service=MyPartition
      MyPartition


      <!-- ==================================================================== -->
      <!-- HA JNDI -->
      <!-- ==================================================================== -->


      31100
      MyPartition
      jboss:service=MyPartition






      ####### End cluster-service.xml #########################

      Can anybody help me solving this problem?

      Thanks
      Stefan

        • 1. Re: Problem Starting ClusteredHttpSession
          slaboure

          This is due to a current restriction in the http session clustering code: you *must* have a partition called DefaultPartition (and not MyPartition as in your case)

          Cheers,


          sacha

          • 2. Re: Problem Starting ClusteredHttpSession
            stefus

            Hi sacha,
            what do you meen with I must have a partition called DefaultPartition. I have one. The first two nodes running in the DefaultPartiton and the third node should run in the MyPartition.

            Where is the error in my cluster-servic.xml file for the third node running in the MyPartition?

            Regards,
            Stefan

            • 3. Re: Problem Starting ClusteredHttpSession
              slaboure

              The problem is that the 3rd node, which has a partition called MyPartition, also deploys the ClusteredHttpSession service. As the "DefaultPartition" is not deployed (because you've renamed it MyPartition), it fails.

              Cheers,


              sacha

              • 4. Re: Problem Starting ClusteredHttpSession
                stefus

                Hi Sacha,
                can you give me a example of a cluster-service.xml that run in an other partition than in the DefaultPartition?

                I don't know where I must chance something, so that the node run in this other partition.

                Thanks in advanced.

                Stefan

                • 5. Re: Problem Starting ClusteredHttpSession
                  slaboure

                  What do you want to do?

                  Note that the current implementation of JBoss HTTPSession clustering (the one integrated in JBoss, not the one that comes with jetty) has a restriction that prevent it to use another partition : the default partition must be there.

                  cheers,

                  sahca

                  • 6. Re: Problem Starting ClusteredHttpSession
                    stefus

                    Hi Sacha,
                    I want to start two partitions. One call DefaultPartition with two or three nodes and one call MyPartition with two nodes.

                    Now I want to know how I must configure the cluster-service.xml in this four or five nodes that the nodes starts with no errors.

                    I have a additional service running in the nodes an this service depends on the ClusteredHttpSession. And when this service don't start my service can't start.

                    Do you now understand what I meen? And can you help me?

                    Thanks in advanced.

                    Stefan

                    • 7. Re: Problem Starting ClusteredHttpSession
                      slaboure

                      In you cluster-service.xml you only start a single partition:


                      MyPartition
                      True


                      You must have the same for the DefaultPartition (which you have removed). All services that depends on the DefaultPartition (and the ClusteredHttpSession is one of them) will refuse to start until you start it.

                      Cheers,


                      sacha

                      • 8. Re: Problem Starting ClusteredHttpSession
                        stefus

                        Hi Sacha,
                        I have attached my cluster-service.xml, when you have a look at it, in the defines cluster section, I think that this node is a member of the two partitions (DefaultPartition and MySpecalNewPartition). Is that right?
                        The nodes starts with this configuartion without any errors.

                        Thanks.

                        Stefan