3 Replies Latest reply on Aug 27, 2004 8:26 AM by Prasad Ganguri

    Failed to find HAPartition with PartitionName=DefaultPartiti

    leomad6 Newbie

      Gurujis,

      I am trying to configure clustered JBoss-3.2.5 with partition name changed to XXPartition. In the process I modified 4 files, replacing DefaultPartition with XXPartition. But still when I start JBoss with command :
      run -c all
      I get the exception, listed below. Can you all guide me as to what I had missed out in the configuration steps.

      Thanks in advance.

      Listing of StackTrace :
      ------------------------

      18:24:41,470 INFO [CorrPartition] Number of cluster members: 2
      18:24:41,470 INFO [CorrPartition] Other members: 1
      18:24:41,470 INFO [CorrPartition] Fetching state (will wait for 60000 milliseconds):
      18:24:49,454 INFO [HANamingService] Listening on /0.0.0.0:1100
      18:24:49,470 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=23
      0.0.0.4, HA-JNDI address=192.168.2.231:1100
      18:24:49,704 ERROR [HASingletonController] Starting failed jboss.ha:service=HASingletonDeployer
      javax.management.InstanceNotFoundException: Failed to find HAPartition with PartitionName=DefaultPartition at org.jboss.ha.jmx.HAServiceMBeanSupport.findHAPartitionWithName(HAServiceMBeanSupport.java
      :388)
      at org.jboss.ha.jmx.HAServiceMBeanSupport.setupPartition(HAServiceMBeanSupport.java:168)
      at org.jboss.ha.jmx.HAServiceMBeanSupport.startService(HAServiceMBeanSupport.java:140)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)

      at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
      at $Proxy17.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:367)
      at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
      at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeplo
      ymentScanner.java:201)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentSca
      nner.java:274)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)

      at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:367)
      at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
      at org.jboss.Main.boot(Main.java:145)
      at org.jboss.Main$1.run(Main.java:399)
      at java.lang.Thread.run(Thread.java:536)
      18:24:49,704 WARN [ServiceController] Problem starting service jboss.ha:service=HASingletonDeployer

        • 1. Re: Failed to find HAPartition with PartitionName=DefaultPar
          Prasad Ganguri Newbie

          I too have the exact same problem... Could some one help?

          • 2. Re: Failed to find HAPartition with PartitionName=DefaultPar
            Scott Stark Master

            Add a PartitionName attribute to all/deploy/deploy-hasingleton-service.xml

             <mbean code="org.jboss.ha.singleton.HASingletonController"
             name="jboss.ha:service=HASingletonDeployer">
             <depends>jboss:service=DefaultPartition</depends>
             <depends optional-attribute-name="TargetName">jboss.system:service=MainDeployer</depends>
             <attribute name="PartitionName">XYZ</attribute>
             <attribute name="TargetStartMethod">deploy</attribute>
             <attribute name="TargetStartMethodArgument">${jboss.server.home.url}/deploy-hasingleton</attribute>
             <attribute name="TargetStopMethod">undeploy</attribute>
             <attribute name="TargetStopMethodArgument">${jboss.server.home.url}/deploy-hasingleton</attribute>
             </mbean>
            



            • 3. Re: Failed to find HAPartition with PartitionName=DefaultPar
              Prasad Ganguri Newbie

              Now I have another problem:

              Please advise what to do


              07:57:28,218 INFO [XYZPartition] Initializing
              07:57:28,363 INFO [UDP] unicast sockets will use interface 140.343.15.22
              07:57:28,375 INFO [UDP] socket information:
              local_addr=jbsprde22:33066 (additional data: 16 bytes), mcast_addr=228.1.2.3:45566, bind_addr=/140.343.15.22, ttl=32
              socket: bound to 140.343.15.22:33066, receive buffer size=150000, send buffer size=262144
              multicast socket: bound to 140.343.15.22:45566, send buffer size=262144, receive buffer size=150000
              07:57:28,382 INFO [STDOUT]
              -------------------------------------------------------
              GMS: address is testserver:33066 (additional data: 16 bytes)
              -------------------------------------------------------
              07:57:28,589 INFO [XYZPartition] Number of cluster members: 4
              07:57:28,590 INFO [XYZPartition] Other members: 3
              07:57:28,591 INFO [XYZPartition] Fetching state (will wait for 60000 milliseconds):
              07:57:30,693 INFO [interceptors] InterceptorManager started with 0 SIs, 0 CIs and 2 IORIs
              07:57:31,191 INFO [orb] ORB run
              07:57:31,601 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E300000000000020000000000000068000102000000000C31302E33332E31352E3232000E2C0000000000114A426F73732F4E616D696E672F726F6F74000000000000020000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000010000002C0000000000000001000000010000001C00000000000100010000000105010001000101090000000105010001]
              07:57:32,850 INFO [MailService] Mail Service bound to java:/Mail
              07:57:34,734 INFO [Embedded] Catalina naming disabled
              07:57:36,664 INFO [Catalina] Initialization processed in 1686 ms
              07:57:36,666 INFO [StandardService] Starting service jboss.web
              07:57:36,681 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.26
              07:57:36,805 INFO [StandardHost] XML validation disabled
              07:57:37,036 INFO [Catalina] Server startup in 371 ms
              07:57:37,288 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
              07:57:37,381 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=file:/appl/jboss/server/testapp01/deploy/http-invoker.sar/invoker.war/
              07:57:41,294 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
              07:57:41,313 INFO [TomcatDeployer] deploy, ctxPath=/jboss-net, warUrl=file:/appl/jboss/server/testapp01/deploy/jboss-net.sar/jboss-net.war/
              07:57:42,238 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ingoring config=null
              07:57:42,258 INFO [TomcatDeployer] deploy, ctxPath=, warUrl=file:/appl/jboss/server/testapp01/deploy/jbossweb-tomcat50.sar/ROOT.war/
              07:57:43,030 INFO [JmsXA] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=TxCM,name=JmsXA to JNDI name 'java:/JmsXA'
              07:57:43,096 INFO [DefaultDS] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=DefaultDS to JNDI name 'java:/DefaultDS'
              07:57:43,110 INFO [testappDataSource] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=pwxDataSource to JNDI name 'java:/testappDataSource'
              07:57:43,117 INFO [testappDataSource_NT] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=LocalTxCM,name=pwxDataSourceNT to JNDI name 'java:/testappDataSource_NT'
              07:57:43,772 INFO [TomcatDeployer] deploy, ctxPath=/testapp, warUrl=file:/appl/jboss/common/edr/testapp.war/
              07:57:48,716 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/appl/jboss/server/testapp01/deploy/jmx-console.war/
              07:57:51,464 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/appl/jboss/server/testapp01/tmp/deploy/tmp9154web-console.war/
              07:57:53,464 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
              MBeans waiting for other MBeans:
              ObjectName: jboss.j2ee:jndiName=clustering/HTTPSession,service=EJB
               state: NOTYETINSTALLED
               I Depend On: jboss:service=XYZPartition
               jboss:service=invoker,type=jrmp
              
               Depends On Me: jboss:service=ClusteredHttpSession
              
              ObjectName: jboss:service=ClusteredHttpSession
               state: CONFIGURED
               I Depend On: jboss.j2ee:jndiName=clustering/HTTPSession,service=EJB
              
               Depends On Me:
              ObjectName: jboss:service=HASessionState
               state: CONFIGURED
               I Depend On: jboss:service=XYZPartition
              
               Depends On Me:
              ObjectName: jboss:service=HAJNDI
               state: CONFIGURED
               I Depend On: jboss:service=XYZPartition
              
               Depends On Me:
              ObjectName: jboss.cache:service=InvalidationBridge,type=JavaGroups
               state: CONFIGURED
               I Depend On: jboss:service=XYZPartition
               jboss.cache:service=InvalidationManager
              
               Depends On Me:
              ObjectName: jboss.ha:service=HASingletonDeployer
               state: CONFIGURED
               I Depend On: jboss:service=XYZPartition
               jboss.system:service=MainDeployer
              
               Depends On Me:
              ObjectName: jboss:service=FarmMember,partition=XYZPartition
               state: CONFIGURED
               I Depend On: jboss:service=XYZPartition
               jboss.web:service=WebServer
               jboss.system:service=MainDeployer
              
               Depends On Me:
              
              MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
              ObjectName: jboss:service=XYZPartition
               state: NOTYETINSTALLED
               I Depend On:
               Depends On Me: jboss.j2ee:jndiName=clustering/HTTPSession,service=EJB
               jboss:service=HASessionState
               jboss:service=HAJNDI
               jboss.cache:service=InvalidationBridge,type=JavaGroups
               jboss.ha:service=HASingletonDeployer
               jboss:service=FarmMember,partition=XYZPartition