1 Reply Latest reply on Aug 17, 2016 10:54 AM by Ales Justin

    Deploying an application into a Cluster in Standalone mode

    Giacomo Genovese Newbie

      Hi all,

       

      How discussed in How to disable Clustering between different instances in the same machine I discovered that I cannot disable messaging on Capedwarf.

      So,I'm doing some test running two Capedwarf Instances in Cluster, using standalone mode, to check if I can take profit from this.

      Everytihing works good but If I try to deploy a new application during the cluster I get error.

      The Clusterd node2, which does not contain the new application, show this error:

       

      17:27:53,392 WARN  [org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher] (OOB-7,shared=udp) ISPN000220: Problems un-marshalling remote command from byte buffer: java.io.InvalidClassException: org.jboss.capedwarf.log.CapedwarfRequestLogs; Module load failed

        at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:104) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:985)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1348)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

        at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.infinispan.registry.ScopedKey$Externalizer.readObject(ScopedKey.java:76)

        at org.infinispan.registry.ScopedKey$Externalizer.readObject(ScopedKey.java:61)

        at org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:389)

        at org.infinispan.marshall.core.ExternalizerTable.readObject(ExternalizerTable.java:205)

        at org.infinispan.marshall.core.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:152)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

        at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readParameters(ReplicableCommandExternalizer.java:100)

        at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:83)

        at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:30)

        at org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:389)

        at org.infinispan.marshall.core.ExternalizerTable.readObject(ExternalizerTable.java:205)

        at org.infinispan.marshall.core.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:152)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

        at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readParameters(ReplicableCommandExternalizer.java:100)

        at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:146)

        at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:59)

        at org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:389)

        at org.infinispan.marshall.core.ExternalizerTable.readObject(ExternalizerTable.java:205)

        at org.infinispan.marshall.core.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:152)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

        at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:136)

        at org.infinispan.marshall.core.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:101)

        at org.infinispan.commons.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:80)

        at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromBuffer(MarshallerAdapter.java:28)

        at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:206)

        at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:460)

        at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:377)

        at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:247)

        at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:667)

        at org.jgroups.blocks.mux.MuxUpHandler.up(MuxUpHandler.java:130)

        at org.jgroups.JChannel.up(JChannel.java:708)

        at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1015)

        at org.jgroups.protocols.RSVP.up(RSVP.java:187)

        at org.jgroups.protocols.FORK.up(FORK.java:81)

        at org.jgroups.protocols.FRAG2.up(FRAG2.java:165)

        at org.jgroups.protocols.FlowControl.up(FlowControl.java:381)

        at org.jgroups.protocols.FlowControl.up(FlowControl.java:370)

        at org.jgroups.protocols.pbcast.GMS.up(GMS.java:1010)

        at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234)

        at org.jgroups.protocols.UNICAST2.handleDataReceived(UNICAST2.java:793)

        at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:415)

        at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:600)

        at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:147)

        at org.jgroups.protocols.FD.up(FD.java:255)

        at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:301)

        at org.jgroups.protocols.MERGE3.up(MERGE3.java:303)

        at org.jgroups.protocols.Discovery.up(Discovery.java:379)

        at org.jgroups.protocols.TP$ProtocolAdapter.up(TP.java:2614)

        at org.jgroups.protocols.TP.passMessageUp(TP.java:1404)

        at org.jgroups.protocols.TP$MyHandler.run(TP.java:1590)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

      Caused by: org.jboss.modules.ModuleNotFoundException: deployment.application01.war:main

        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:102) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        ... 64 more

      Caused by: an exception which occurred:

        in object of type java.lang.Class

      The node 1, where i'm trying to deploy the application, show me this:

      17:27:50,631 INFO  [org.jboss.as.repository] (XNIO-1 task-10) JBAS014900: Content added at location /home/giacomo/wildfly-8.1.0.CR1/TEST/data/content/08/0e900aa2cdfdc9afe010528581410a9f9e499a/content

      17:27:50,676 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "application.war" (runtime-name: "application01.war")

      17:27:51,316 INFO  [org.jboss.as.capedwarf.deployment.CapedwarfInitializationProcessor] (MSC service thread 1-6) Found GAE / CapeDwarf WAR deployment: deployment "application01.war"

      17:27:52,706 INFO  [org.jboss.as.capedwarf.deployment.CapedwarfAppIdProcessor] (MSC service thread 1-1) Processed app id: application01

      17:27:52,714 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) JBAS011401: Read persistence.xml for transactions-optional

      17:27:52,824 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment: application01.war

      17:27:52,891 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) JBAS010404: Deploying non-JDBC-compliant driver class com.google.appengine.api.rdbms.AppEngineDriver (version 1.0)

      17:27:52,891 INFO  [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016005: Starting Services for CDI deployment: application01.war

      17:27:52,904 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) JBAS010417: Started Driver service with driver-name = application01.war_com.google.appengine.api.rdbms.AppEngineDriver_1_0

      17:27:52,917 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-5) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:52,918 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-5) JBAS010281: Started memcache_application01 cache from capedwarf container

      17:27:52,920 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-3) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:52,921 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-3) JBAS010281: Started dist_application01 cache from capedwarf container

      17:27:52,923 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-7) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:52,925 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-4) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:52,925 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-8) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:52,925 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-4) JBAS010281: Started metadata_application01 cache from capedwarf container

      17:27:52,925 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-7) JBAS010281: Started data_application01 cache from capedwarf container

      17:27:52,926 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016008: Starting weld service for deployment application01.war

      17:27:52,927 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-8) JBAS010281: Started datastore_versions_application01 cache from capedwarf container

      17:27:52,948 INFO  [org.infinispan.query.impl.LifecycleManager] (MSC service thread 1-2) ISPN014003: Registering Query interceptor

      17:27:52,951 WARN  [org.hibernate.search.impl.ConfigContext] (MSC service thread 1-2) HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified, using LUCENE_CURRENT.

      17:27:52,953 WARN  [org.hibernate.search.backend.impl.jgroups.JGroupsChannelProvider] (MSC service thread 1-2) HSEARCH000007: FLUSH is not present in your JGroups stack! FLUSH is needed to ensure messages are not dropped while new nodes join the cluster. Will proceed, but inconsistencies may arise!

      17:27:52,989 INFO  [org.infinispan.query.impl.LifecycleManager] (MSC service thread 1-4) ISPN014003: Registering Query interceptor

      17:27:52,992 WARN  [org.hibernate.search.impl.ConfigContext] (MSC service thread 1-4) HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified, using LUCENE_CURRENT.

      17:27:52,993 WARN  [org.hibernate.search.backend.impl.jgroups.JGroupsChannelProvider] (MSC service thread 1-4) HSEARCH000007: FLUSH is not present in your JGroups stack! FLUSH is needed to ensure messages are not dropped while new nodes join the cluster. Will proceed, but inconsistencies may arise!

      17:27:53,005 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-2) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:53,008 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-2) JBAS010281: Started default_application01 cache from capedwarf container

      17:27:53,022 INFO  [org.infinispan.query.impl.LifecycleManager] (MSC service thread 1-1) ISPN014003: Registering Query interceptor

      17:27:53,024 WARN  [org.hibernate.search.impl.ConfigContext] (MSC service thread 1-1) HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified, using LUCENE_CURRENT.

      17:27:53,026 WARN  [org.hibernate.search.backend.impl.jgroups.JGroupsChannelProvider] (MSC service thread 1-1) HSEARCH000007: FLUSH is not present in your JGroups stack! FLUSH is needed to ensure messages are not dropped while new nodes join the cluster. Will proceed, but inconsistencies may arise!

      17:27:53,035 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-4) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:53,037 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-4) JBAS010281: Started prospective_search_application01 cache from capedwarf container

      17:27:53,061 INFO  [org.infinispan.query.impl.LifecycleManager] (MSC service thread 1-6) ISPN014003: Registering Query interceptor

      17:27:53,062 WARN  [org.hibernate.search.impl.ConfigContext] (MSC service thread 1-6) HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified, using LUCENE_CURRENT.

      17:27:53,064 WARN  [org.hibernate.search.backend.impl.jgroups.JGroupsChannelProvider] (MSC service thread 1-6) HSEARCH000007: FLUSH is not present in your JGroups stack! FLUSH is needed to ensure messages are not dropped while new nodes join the cluster. Will proceed, but inconsistencies may arise!

      17:27:53,099 INFO  [org.infinispan.query.impl.LifecycleManager] (MSC service thread 1-3) ISPN014003: Registering Query interceptor

      17:27:53,101 WARN  [org.hibernate.search.impl.ConfigContext] (MSC service thread 1-3) HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified, using LUCENE_CURRENT.

      17:27:53,103 WARN  [org.hibernate.search.backend.impl.jgroups.JGroupsChannelProvider] (MSC service thread 1-3) HSEARCH000007: FLUSH is not present in your JGroups stack! FLUSH is needed to ensure messages are not dropped while new nodes join the cluster. Will proceed, but inconsistencies may arise!

      17:27:53,133 INFO  [org.infinispan.query.impl.LifecycleManager] (MSC service thread 1-5) ISPN014003: Registering Query interceptor

      17:27:53,136 WARN  [org.hibernate.search.impl.ConfigContext] (MSC service thread 1-5) HSEARCH000075: Configuration setting hibernate.search.lucene_version was not specified, using LUCENE_CURRENT.

      17:27:53,140 WARN  [org.hibernate.search.backend.impl.jgroups.JGroupsChannelProvider] (MSC service thread 1-5) HSEARCH000007: FLUSH is not present in your JGroups stack! FLUSH is needed to ensure messages are not dropped while new nodes join the cluster. Will proceed, but inconsistencies may arise!

      17:27:53,186 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-3) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:53,186 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-1) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:53,192 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-1) JBAS010281: Started logs_application01 cache from capedwarf container

      17:27:53,211 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-6) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:53,213 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-6) JBAS010281: Started channel_application01 cache from capedwarf container

      17:27:53,218 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-3) JBAS010281: Started tasks_application01 cache from capedwarf container

      17:27:53,221 INFO  [org.infinispan.jmx.CacheJmxRegistration] (MSC service thread 1-5) ISPN000031: MBeans were successfully registered to the platform MBean server.

      17:27:53,224 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-5) JBAS010281: Started search_application01 cache from capedwarf container

      17:27:53,302 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) JBAS017534: Registered web context: /application01

      17:27:53,404 INFO  [org.jboss.as.server] (XNIO-1 task-3) JBAS018559: Deployed "application01.war" (runtime-name : "application01.war")

      17:27:53,421 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (Thread-4 (HornetQ-client-global-threads-488503914)) ISPN000136: Execution error: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from TEST_COPY1/capedwarf, see cause for remote stack trace

        at org.infinispan.remoting.transport.AbstractTransport.checkResponse(AbstractTransport.java:41) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:362) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:167) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:521) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:281) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.distribution.TxDistributionInterceptor.prepareOnAffectedNodes(TxDistributionInterceptor.java:219) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.distribution.TxDistributionInterceptor.visitPrepareCommand(TxDistributionInterceptor.java:203) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.EntryWrappingInterceptor.visitPrepareCommand(EntryWrappingInterceptor.java:96) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.locking.AbstractTxLockingInterceptor.invokeNextAndCommitIf1Pc(AbstractTxLockingInterceptor.java:78) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.locking.OptimisticLockingInterceptor.visitPrepareCommand(OptimisticLockingInterceptor.java:87) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.NotificationInterceptor.visitPrepareCommand(NotificationInterceptor.java:36) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.TxInterceptor.invokeNextInterceptorAndVerifyTransaction(TxInterceptor.java:114) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.TxInterceptor.visitPrepareCommand(TxInterceptor.java:101) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.statetransfer.TransactionSynchronizerInterceptor.visitPrepareCommand(TransactionSynchronizerInterceptor.java:42) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.statetransfer.StateTransferInterceptor.handleTopologyAffectedCommand(StateTransferInterceptor.java:263) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.statetransfer.StateTransferInterceptor.handleTxCommand(StateTransferInterceptor.java:194) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.statetransfer.StateTransferInterceptor.visitPrepareCommand(StateTransferInterceptor.java:94) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:110) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:73) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.AbstractVisitor.visitPrepareCommand(AbstractVisitor.java:96) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commands.tx.PrepareCommand.acceptVisitor(PrepareCommand.java:124) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.transaction.TransactionCoordinator.prepare(TransactionCoordinator.java:119) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.transaction.TransactionCoordinator.prepare(TransactionCoordinator.java:101) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.transaction.synchronization.SynchronizationAdapter.beforeCompletion(SynchronizationAdapter.java:44) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:76)

        at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:358)

        at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:91)

        at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:162)

        at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1166)

        at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:126)

        at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:75)

        at org.infinispan.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:1316) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.CacheImpl.putInternal(CacheImpl.java:878) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.CacheImpl.put(CacheImpl.java:870) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.DecoratedCache.put(DecoratedCache.java:401) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.AbstractDelegatingCache.put(AbstractDelegatingCache.java:276) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.jboss.capedwarf.log.CapedwarfLogService$SyncLogWriter.put(CapedwarfLogService.java:421) [capedwarf-log-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.log.CapedwarfLogService.requestStarted(CapedwarfLogService.java:292) [capedwarf-log-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_80]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_80]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_80]

        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_80]

        at org.jboss.capedwarf.aspects.proxy.AspectContext.proceed(AspectContext.java:47) [capedwarf-aspects-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.aspects.DisableSocketsAspect.invoke(DisableSocketsAspect.java:43) [capedwarf-aspects-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.aspects.proxy.AspectWrapper.invoke(AspectWrapper.java:50) [capedwarf-aspects-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.aspects.proxy.AspectContext.proceed(AspectContext.java:52) [capedwarf-aspects-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.aspects.GlobalTimeLimitAspect.invoke(GlobalTimeLimitAspect.java:44) [capedwarf-aspects-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.aspects.proxy.AspectWrapper.invoke(AspectWrapper.java:50) [capedwarf-aspects-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.aspects.proxy.AspectContext.proceed(AspectContext.java:52) [capedwarf-aspects-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.aspects.proxy.AspectHandler.invoke(AspectHandler.java:60) [capedwarf-aspects-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.log.ExposedLogService_$$_jvste54_7.requestStarted(ExposedLogService_$$_jvste54_7.java) [capedwarf-log-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at org.jboss.capedwarf.appidentity.GAEListener.requestInitialized(GAEListener.java:131) [capedwarf-appidentity-2.0.0-SNAPSHOT.jar:2.0.0-SNAPSHOT]

        at io.undertow.servlet.core.ApplicationListeners.requestInitialized(ApplicationListeners.java:216) [undertow-servlet-1.0.5.Final.jar:1.0.5.Final]

        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:239) [undertow-servlet-1.0.5.Final.jar:1.0.5.Final]

        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.5.Final.jar:1.0.5.Final]

        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchMockRequest(ServletInitialHandler.java:214) [undertow-servlet-1.0.5.Final.jar:1.0.5.Final]

        at io.undertow.servlet.spec.RequestDispatcherImpl.mock(RequestDispatcherImpl.java:409) [undertow-servlet-1.0.5.Final.jar:1.0.5.Final]

        at org.jboss.as.capedwarf.services.Hack.invoke(Hack.java:50)

        at org.jboss.as.capedwarf.services.ServletExecutor.dispatch(ServletExecutor.java:82)

        at org.jboss.as.capedwarf.services.ServletExecutorConsumer.onMessage(ServletExecutorConsumer.java:126)

        at org.hornetq.jms.client.JMSMessageListenerWrapper.onMessage(JMSMessageListenerWrapper.java:103)

        at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:1116)

        at org.hornetq.core.client.impl.ClientConsumerImpl.access$500(ClientConsumerImpl.java:56)

        at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1251)

        at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:104)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]

      Caused by: org.infinispan.commons.CacheException: Problems invoking command.

        at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:221) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:460) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:377) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:247) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:667) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.blocks.mux.MuxUpHandler.up(MuxUpHandler.java:130) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.JChannel.up(JChannel.java:708) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1015) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.RSVP.up(RSVP.java:187) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.FORK.up(FORK.java:81) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.FRAG2.up(FRAG2.java:165) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.FlowControl.up(FlowControl.java:381) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.FlowControl.up(FlowControl.java:370) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.pbcast.GMS.up(GMS.java:1010) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.UNICAST2.handleDataReceived(UNICAST2.java:793) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.UNICAST2.up(UNICAST2.java:415) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:600) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:147) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.FD.up(FD.java:255) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:301) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.MERGE3.up(MERGE3.java:303) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.Discovery.up(Discovery.java:379) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.TP$ProtocolAdapter.up(TP.java:2614) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.TP.passMessageUp(TP.java:1404) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        at org.jgroups.protocols.TP$MyHandler.run(TP.java:1590) [jgroups-3.4.3.Final.jar:3.4.3.Final]

        ... 3 more

      Caused by: java.io.InvalidClassException: org.jboss.capedwarf.log.CapedwarfRequestLogs; Module load failed

        at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:104) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:985) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1348) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.infinispan.registry.ScopedKey$Externalizer.readObject(ScopedKey.java:76) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.registry.ScopedKey$Externalizer.readObject(ScopedKey.java:61) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:389) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.ExternalizerTable.readObject(ExternalizerTable.java:205) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:152) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readParameters(ReplicableCommandExternalizer.java:100) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:83) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readObject(ReplicableCommandExternalizer.java:30) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:389) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.ExternalizerTable.readObject(ExternalizerTable.java:205) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:152) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.infinispan.marshall.exts.ReplicableCommandExternalizer.readParameters(ReplicableCommandExternalizer.java:100) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:146) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.exts.CacheRpcCommandExternalizer.readObject(CacheRpcCommandExternalizer.java:59) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:389) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.ExternalizerTable.readObject(ExternalizerTable.java:205) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.marshall.core.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:152) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209) [jboss-marshalling-river-1.4.5.Final.jar:1.4.5.Final]

        at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:136)

        at org.infinispan.marshall.core.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:101) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.commons.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:80)

        at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectFromBuffer(MarshallerAdapter.java:28) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:206) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]

        ... 28 more

      Caused by: org.jboss.modules.ModuleNotFoundException: deployment.application01.war:main

        at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:102) [jboss-marshalling-1.4.5.Final.jar:1.4.5.Final]

        ... 64 more

      Caused by: an exception which occurred:

        in object of type java.lang.Class

      Then, If I deploy the same app also into the second Instance, it works like if nothing was happened.

      If I try to reload both Instance, sometimes the error arise again.

       

      So, please, my question is:

      Can I deploy an application at runtime in a Cluster in standalone mode?

      If Yes, Why these errors?

       

      Thanks.

       

      Giacomo.