3 Replies Latest reply on Jan 3, 2002 9:44 PM by alanlewis

    jboss-3.0.0alpha cluster exception

    edwu00

      1)
      From the download jboss 3.0 alpha,
      there is no deploy/cluster-service.xml
      2)
      Then I download the src and build it.
      It has the deploy/cluster-service.xml
      But I can not start JBoss cluster.
      Thanks for any help.

      Ed Wu

      10:45:11,294 INFO [ClusterPartition] Starting channel
      10:45:11,304 INFO [HAPartition:DefaultPartition] Num cluster members: 1
      10:45:11,304 INFO [HAPartition:DefaultPartition] SetState called
      10:45:11,304 INFO [HAPartition:DefaultPartition] state is null
      10:45:11,304 INFO [HAPartition:DefaultPartition] State could not be retrieved,
      (must be first member of group)
      10:45:11,304 INFO [DefaultPartition:ReplicantManager] mergemembers
      10:45:11,304 INFO [DefaultPartition:ReplicantManager] start MergeMembers
      10:45:11,405 INFO [ClusterPartition] Started ClusterPartition: DefaultPartition
      10:45:11,405 INFO [ClusterPartition] Started
      10:45:11,405 INFO [JRMPInvokerHA] Starting
      10:45:11,495 ERROR [JRMPInvokerHA] Failed
      java.lang.NullPointerException
      at org.jboss.ha.framework.server.HARMIServerImpl.(HARMIServerImpl.
      java:79)
      at org.jboss.invocation.jrmp.server.JRMPInvokerHA.exportCI(JRMPInvokerHA
      .java:137)
      at org.jboss.invocation.jrmp.server.JRMPInvoker.start(JRMPInvoker.java:1
      86)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:761)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:333)
      at org.jboss.system.ServiceController.start(ServiceController.java:347)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:753)
      at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:265)
      at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport
      .java:97)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:685)
      at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
      at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:517)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      30)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:761)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:333)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:753)
      at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:265)
      at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport
      .java:97)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
      28)
      at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
      23)
      at org.jboss.Main.(Main.java:199)
      at org.jboss.Main$1.run(Main.java:412)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:407)
      10:45:11,515 ERROR [ServiceController] JMException thrown during ServiceProxy op
      eration start on mbean JBOSS-SYSTEM:service=invoker,type=jrmpha

        • 1. Re: jboss-3.0.0alpha cluster exception
          alanlewis

          I'm pretty sure that the clustering is broken in 3.0 at this instant, but the clustering does work in the 3.0 alpha release. Simply take the cluster-service.xml file from the 3.0 source and drop in your 3.0 alpha version. Presto! It should work. Please post back with more info if this does not fix it.

          • 2. Re: jboss-3.0.0alpha cluster exception
            edwu00

            For 3.0 alpha release,
            I drop the client-service.xml to deploy/
            Then run jboss, I get tools.jar not found exception
            and jrmpha exceptions. See the 2 exceptions below.
            Thanks for the help.

            Ed Wu

            H:/home/ewu/jboss-3.0.0alpha/jboss/deploy/lib/jetty-plugin.sar
            [16:31:21,524,ServiceDeployer] Problem deploying url file:/H:/home/ewu/jboss-3.0
            .0alpha/jboss//lib/ext/tools.jar, no valid service.xml file found.
            java.io.FileNotFoundException: H:\home\ewu\jboss-3.0.0alpha\jboss\lib\ext\tools.
            jar (The system cannot find the file specified)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.(FileInputStream.java:64)
            at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
            .java:69)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
            nection.java:133)
            at java.net.URL.openStream(URL.java:798)
            at org.jboss.deployment.DeployerMBeanSupport.getLocalCopy(DeployerMBeanS
            upport.java:502)
            at org.jboss.deployment.ServiceDeployer.deployLocalClasses(ServiceDeploy
            er.java:270)
            at org.jboss.deployment.ServiceDeployer.deployNeededPackages(ServiceDepl
            oyer.java:472)
            at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:185)
            at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport
            .java:107)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
            at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
            at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
            17)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:775)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:479)
            at org.jboss.system.ServiceController.registerAndStartService(ServiceCon
            troller.java:273)
            at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
            at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:6
            68)
            at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
            at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport
            .java:107)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.Main.(Main.java:199)
            at org.jboss.Main$1.run(Main.java:411)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.Main.main(Main.java:406)
            [16:31:21,534,ServiceDeployer] problem deploying classes for file:/H:/home/ewu/j
            boss-3.0.0alpha/jboss//lib/ext/tools.jar





            [16:32:06,689,ServiceCreator] About to create the beanJBOSS-SYSTEM:service=invok
            er,type=jrmpha
            [16:32:07,620,ServiceController] Could not create MBean: JBOSS-SYSTEM:service=in
            voker,type=jrmpha
            javax.management.ReflectionException: The MBean class could not be loaded by the
            specified loader
            at com.sun.management.jmx.MBeanServerImpl.createMBean(MBeanServerImpl.ja
            va:754)
            at org.jboss.system.ServiceCreator.create(ServiceCreator.java:85)
            at org.jboss.system.ServiceController.deploy(ServiceController.java:178)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
            at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:6
            68)
            at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
            at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport
            .java:107)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.AutoDeployer.deploy(AutoDeployer.java:654)
            at org.jboss.deployment.AutoDeployer.run(AutoDeployer.java:327)
            at org.jboss.deployment.AutoDeployer.startService(AutoDeployer.java:509)
            at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
            17)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
            ler.java:775)
            at $Proxy0.start(Unknown Source)
            at org.jboss.system.ServiceController.start(ServiceController.java:479)
            at org.jboss.system.ServiceController.registerAndStartService(ServiceCon
            troller.java:273)
            at org.jboss.system.ServiceController.deploy(ServiceController.java:257)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.deployment.ServiceDeployer.invoke(ServiceDeployer.java:732)
            at org.jboss.deployment.ServiceDeployer.addMBeans(ServiceDeployer.java:6
            68)
            at org.jboss.deployment.ServiceDeployer.deploy(ServiceDeployer.java:215)
            at org.jboss.deployment.DeployerMBeanSupport.deploy(DeployerMBeanSupport
            .java:107)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
            28)
            at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
            23)
            at org.jboss.Main.(Main.java:199)
            at org.jboss.Main$1.run(Main.java:411)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.jboss.Main.main(Main.java:406)
            [16:32:07,941,ServiceDeployer] Mbean exception while executing deploy on [Ljava.
            lang.Object;@4e3fc5





            • 3. Re: jboss-3.0.0alpha cluster exception
              alanlewis

              For the first exception I think that one has been fixed since the alpha release, and I don't think it affects clustering.

              You should be able to fix the second exception (and get clustering to work) by using an older version of cluster-service.xml Try using the one below (its dated Dec 2... I'm not sure on the version since I got it from a nightly tree zip file):



              <?xml version="1.0" encoding="UTF-8"?>


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





              JBOSS-SYSTEM:service=Naming

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


              <mbean-ref-list name="SynchronizedMBeans">
              <mbean-ref-list-element>JBOSS-SYSTEM:service=HASessionState</mbean-ref-list-element>
              <mbean-ref-list-element>JBOSS-SYSTEM:service=HAJNDI</mbean-ref-list-element>
              </mbean-ref-list>


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




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