1 Reply Latest reply on Mar 26, 2007 11:15 AM by rrajesh

    JBoss 4.2.0 - jboss.examples:service=HASingletonMBeanExample

    ldimaggio

      I'm trying to debug this failure in the 4.2.0 testsuite:

      Suite: org.jboss.test.cluster.test.HASingletonElectionPolicyTestCase(Default-UDP)
      Test: testElectionPolicy
      Type: error
      Exception: javax.management.InstanceNotFoundException
      Message: jboss.examples:service=HASingletonMBeanExample_1 is not registered.

      In the server.log, I'm seeing this:

      ----------------------------------
      10:03:57,801 INFO [ServiceConfigurator] Problem configuring service jboss.examples:service=HASingletonMBeanExample-HASingletonController_1
      org.jboss.deployment.DeploymentException: No Attribute found with name: HASingletonElectionPolicyMBean
      ----------------------------------

      This is why the tests are failing. The thing that I'm stuck with is that the HASingletonElectionPolicyMBean class in question is present in jbossha.jar:

      ----------------------------------
      [root@dhcp83-138 META-INF]# jar -tvf /var/lib/jbossas/server/cluster-UDP-0/lib/jbossha.jar | grep HASingletonElectionPolicyMBean
      257 Mon Mar 19 19:01:36 EDT 2007 org/jboss/ha/singleton/HASingletonElectionPolicyMBean.class
      ----------------------------------

      But - I guess that there is an attribute with the same name (HASingletonElectionPolicyMBean) defined where? Can anyone suggest how to debug this this?


      Thanks,
      Len DiMaggio
      ldimaggi@redhat.com

        • 1. Re: JBoss 4.2.0 - jboss.examples:service=HASingletonMBeanExa
          rrajesh

          You might want to take a look at the files that go into the configs the test is run against, in this case cluster-UDP-0 and cluster-UDP-1

          The testsuite/build.xml should tell you how these configs are created.
          In this case take a look at the "create-cluster-node" target in testsuite/imports/server-config.xml