0 Replies Latest reply on Nov 13, 2012 9:46 PM by Jack Lau

    JBoss EAP 6 clustering with Apache 2.0 problem

    Jack Lau Newbie

      Hi all,


      I am using JBoss EAP 6 with clustering (in 2 app servers) and Apache 2.0 (in web server).

      I have set the mod_jk to JBoss in worker.properties.

      In war file, the web.xml include <distributable/> tag.

      After I deployed the war file to JBoss, I access the web page via web server, it seems lost the session.

      If I remove the <distributable/> tag from web.xml and access the web page via both application server, it is ok.

      After that I also added a jboss-web.xml , but the problem still happen.


      I am using Struts 2.0, Apache dbcp.


      Does anyone know what configuration file should I change ?


      In addition, both console always throws the following exceptions:

       

      1. 19:11:22,215 ERROR [org.infinispan.cacheviews.CacheViewsManagerImpl] (CacheViewInstaller-4,master:server-three/web) ISPN000172: Failed to prepare view CacheView{viewId=8, members=[slave:server-three-slave/web, master:server-three/web]} for cache  default-host/eu-feedin, rolling back to view CacheView{viewId=7, members=[slave:server-three-slave/web]}: java.util.concurrent.ExecutionException: org.infinispan.CacheException: Problems invoking command. 
      2.     at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:232) [rt.jar:1.6.0_35] 
      3.     at java.util.concurrent.FutureTask.get(FutureTask.java:91) [rt.jar:1.6.0_35] 
      4.     at org.infinispan.cacheviews.CacheViewsManagerImpl.clusterPrepareView(CacheViewsManagerImpl.java:318) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      5.     at org.infinispan.cacheviews.CacheViewsManagerImpl.clusterInstallView(CacheViewsManagerImpl.java:249) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      6.     at org.infinispan.cacheviews.CacheViewsManagerImpl$ViewInstallationTask.call(CacheViewsManagerImpl.java:875) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      7.     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_35] 
      8.     at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_35] 
      9.     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_35] 
      10.     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_35] 
      11.     at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_35] 
      12. Caused by: org.infinispan.CacheException: Problems invoking command. 
      13.     at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:210) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      14.     at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:456) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      15.     at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:363) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      16.     at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:238) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      17.     at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:543) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      18.     at org.jgroups.blocks.mux.MuxUpHandler.up(MuxUpHandler.java:130) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      19.     at org.jgroups.JChannel.up(JChannel.java:716) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      20.     at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1026) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      21.     at org.jgroups.protocols.RSVP.up(RSVP.java:179) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      22.     at org.jgroups.protocols.FRAG2.up(FRAG2.java:181) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      23.     at org.jgroups.protocols.FlowControl.up(FlowControl.java:418) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      24.     at org.jgroups.protocols.FlowControl.up(FlowControl.java:400) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      25.     at org.jgroups.protocols.pbcast.GMS.up(GMS.java:889) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      26.     at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:244) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      27.     at org.jgroups.protocols.UNICAST2.handleDataReceived(UNICAST2.java:759) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      28.     at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:365) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      29.     at org.jgroups.protocols.pbcast.NAKACK.up(NAKACK.java:602) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      30.     at org.jgroups.protocols.BARRIER.up(BARRIER.java:102) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      31.     at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:143) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      32.     at org.jgroups.protocols.FD.up(FD.java:273) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      33.     at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:288) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      34.     at org.jgroups.protocols.MERGE2.up(MERGE2.java:205) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      35.     at org.jgroups.protocols.Discovery.up(Discovery.java:359) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      36.     at org.jgroups.stack.Protocol.up(Protocol.java:363) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      37.     at org.jgroups.protocols.TP.passMessageUp(TP.java:1180) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      38.     at org.jgroups.protocols.TP$IncomingPacket.handleMyMessage(TP.java:1728) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      39.     at org.jgroups.protocols.TP$IncomingPacket.run(TP.java:1710) [jgroups-3.0.9.Final-redhat-1.jar:3.0.9.Final-redhat-1
      40.     ... 3 more 
      41. Caused by: java.io.StreamCorruptedException: Unexpected byte found when reading an object: 50 
      42.     at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:750) [jboss-marshalling-river-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      43.     at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      44.     at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37) [jboss-marshalling-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      45.     at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:99) [jboss-marshalling-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      46.     at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:935) [jboss-marshalling-river-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      47.     at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1205) [jboss-marshalling-river-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      48.     at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272) [jboss-marshalling-river-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      49.     at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      50.     at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37) [jboss-marshalling-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      51.     at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readParameters(ReplicableCommandExternalizer.java:119) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      52.     at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:163) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      53.     at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:67) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      54.     at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:391) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      55.     at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:222) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      56.     at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351) [jboss-marshalling-river-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      57.     at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      58.     at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37) [jboss-marshalling-1.3.14.GA-redhat-1.jar:1.3.14.GA-redhat-1
      59.     at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:154) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      60.     at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:114) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      61.     at org.infinispan.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:85) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      62.     at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromBuffer(MarshallerAdapter.java:50) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      63.     at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:200) [infinispan-core-5.1.4.FINAL-redhat-1.jar:5.1.4.FINAL-redhat-1
      64.     ... 29 more 

       

      Thanks,

      Jack