1 2 3 Previous Next 31 Replies Latest reply on Apr 14, 2015 5:39 AM by kiran_naikwade Go to original post
      • 30. Re: Re: Jboss application not working in cluster in standalone mode.
        soranki

        When  I am using the following command I dont have any issue with the logs but but in browser when I hit localhost:81 (81 is what is configured in standalone and standalone-ha.xml) my JBoss is not up and showing as web page is not available

         

        standalone.bat -c standalone-ha.xml -Djboss.node.name=NodeA -b 192.168.0.118  -Djboss.socket.binding.port-offset=100

         

        Where as when I give the below command my JBoss and application both are accessible. My main purpose is I want to form a cluster b/w both the instances but without -b,-D I cannot acheive it.

         

        standalone.bat -c standalone-ha.xml

         

        Any help on this please.

        • 31. Re: Jboss application not working in cluster in standalone mode.
          kiran_naikwade

          Hi,

           

          I did configuration for jboss clustering and it is working on two nodes.

           

          Two node(i.e A and B) are working fine for jboss 7 cluster but if i tried to add third node, i am getting below error and also war file is not deploying on the NodeC.

          I am using standalone-ha.xml



          Logs:


          20:48:01,808 FINE [org.jgroups.protocols.FD_SOCK] (pool-5-thread-1) VIEW_CHANGE received: [NodeA/cluster, 40af935d-5d2e-1742-82e7-3a11d7ae004f, NodeC/cluster]
          20:48:01,817 FINE [org.jgroups.protocols.pbcast.STABLE] (pool-5-thread-1) [ergonomics] setting max_bytes to 1.2MB (3 members)
          20:48:01,822 ERROR [org.jboss.msc.service.fail] (pool-5-thread-1) MSC00001: Failed to start service jboss.jgroups.channel.cluster: org.jboss.msc.service.StartException in service jboss.jgroups.channel.cluster: java.lang.NullPointerException at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:62) [jboss-as-clustering-common-7.1.1.Final.jar:7.1.1.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67] **Caused by: java.lang.NullPointerException** at org.jboss.as.clustering.jgroups.subsystem.ChannelService.start(ChannelService.java:51) [jboss-as-clustering-jgroups-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:59) [jboss-as-clustering-common-7.1.1.Final.jar:7.1.1.Final] ... 3 more

          20:48:01,823 DEBUG [org.apache.catalina.core.ContainerBase] (MSC service thread 1-1) Add child StandardWrapper[default] StandardContext[]
          20:48:01,823 WARNING [org.jgroups.protocols.TCP] (FD_SOCK pinger,cluster,NodeC/cluster) logical address cache didn't contain all physical address, sending up a discovery request
          20:48:01,830 SEVERE [org.jgroups.protocols.TCP] (FD_SOCK pinger,cluster,NodeC/cluster) failed sending message to cluster (73 bytes): java.lang.NullPointerException, cause: null
          20:48:01,834 FINE [org.jgroups.protocols.FD_SOCK] (FD_SOCK pinger,cluster,NodeC/cluster) ping_dest is NodeA/cluster, pingable_mbrs=[NodeA/cluster, 40af935d-5d2e-1742-82e7-3a11d7ae004f, NodeC/cluster
          ]




          Logs At the time of war deployment:


          War file is not deploying on third node (i.e NodeC)


          23:19:03,810 INFO [org.jboss.as] (MSC service thread 1-3) JBAS015951: Admin console listening on http://192.168.2.86:9990 23:19:03,811 ERROR [org.jboss.as] (MSC service thread 1-3) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 3419ms - Started 169 of 313 services (15 services failed or missing dependencies, 129 services are passive or on-demand) 23:19:03,813 FINE [org.jgroups.protocols.FD_SOCK] (FD_SOCK pinger,web,NodeC/web) ping_dest is NodeA/web, pingable_mbrs=[NodeA/web, 32f93450-277c-ff64-9c59-66edb052801c, NodeC/web] 23:19:04,011 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "InfinispanCluster.war" was rolled back with failure message JBAS014750: Operation handler failed to complete 23:19:04,021 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment InfinispanCluster.war in 9ms  23:19:04,022 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report JBAS014777: Services which failed to start: service jboss.jgroups.channel.web: org.jboss.msc.service.StartException in service jboss.jgroups.channel.web: java.lang.NullPointerException

          23:19:04,024 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "JBAS014750: Operation handler failed to complete"}} 23:19:08,897 FINE [org.jgroups.protocols.FD] (Timer-4,) sending are-you-alive msg to NodeA/cluster (own address=NodeC/cluster) 23:19:09,804 FINE [org.jgroups.protocols.FD] (Timer-3,) sending are-you-alive msg to NodeA/web (own address=NodeC/web) 23:19:11,913 DEBUG [org.jboss.modcluster.ModClusterService] (ContainerBackgroundProcessor[StandardEngine[jboss.web]]) Check status for engine [jboss.web] 23:19:13,707 WARNING [org.jgroups.protocols.TCP] (Timer-3,) logical address cache didn't contain all physical address, sending up a discovery request 23:19:13,709 SEVERE [org.jgroups.protocols.TCP] (Timer-3,) failed sending message to cluster (107 bytes): java.lang.NullPointerException, cause: null 23:19:14,898 FINE [org.jgroups.protocols.FD] (Timer-5,) sending are-you-alive msg to NodeA/cluster (own address=NodeC/cluster) 23:19:15,804 FINE [org.jgroups.protocols.FD] (Timer-2,) sending are-you-alive msg to NodeA/web (own address=NodeC/web) 23:19:20,899 FINE [org.jgroups.protocols.FD] (Timer-4,) sending are-you-alive msg to NodeA/cluster (own address=NodeC/cluster)

           

           

          i m stuck with this problem, can you please help. . .

          1 2 3 Previous Next