1 Reply Latest reply on Mar 16, 2011 11:02 AM by Sandeep Rao

    HornetQ HA Backup Node Configuration Errors

    Sandeep Rao Newbie

      I am trying to configure a backup node for fail-over using  HornetQ 2.1.2-final  installed on JBoss 5.1  and  I am running into some serious problems. I have read through the HA section of the document and I have the non-transaction failover example running fine on the machine.

       

      If the <backup> attribute is set to true  in hornetq-configuration.xml,  I see these errors on Jboss startup :

       

      JBoss  Server.log

      2011-03-15 16:53:35,992 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=org.hornetq:module=JMS,type=Queue,name="exampleQueue" aliases=[org.hornetq:module=JMS,name="exampleQueue",type=Queue] state=Create

      java.lang.IllegalStateException: Cannot access JMS Server, core server is not yet active

      at org.hornetq.jms.server.impl.JMSServerManagerImpl.checkInitialised(JMSServerManagerImpl.java:1362)

      at org.hornetq.jms.server.impl.JMSServerManagerImpl.createQueue(JMSServerManagerImpl.java:359)

      at org.jboss.as.integration.hornetq.deployers.pojo.HornetQQueueDeployment.start(HornetQQueueDeployment.java:41)

      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:597)

       

      Seems like a dependency issue that I am unable to resolve by going the documentation. All exceptions go away when the backup attribute is set to false - what additional configuration is required to make this work ?

       

      Any help or pointers will be most appreciated

       

      Attached are the entire hornetq.sar zipped folder from the backup node  and a longer server.log file with exceptions

       

      Thanks