I packaged my ear app into a single ear file and deployed it successfully. But the session are still not replicated.
So, My issue is not related to the fact that I used an exploded ear structure.
Exploded or not, when deployed in ha-standalone mode, session are never replicated.
It's just like JBoss does not take into account the <distributable/> tag in my web.xml. There is no error in log file.
Nevertheless, the demo war app does not work when its war is exploded but works when zipped in a single file.
The following logs only appears with the demo packaged war
19:13:46,459 INFO MSC service thread 1-2(:) [org.infinispan.configuration.cache.EvictionConfigurationBuilder] - ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
19:13:46,459 INFO MSC service thread 1-2(:) [org.infinispan.configuration.cache.EvictionConfigurationBuilder] - ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
19:13:46,459 DEBUG MSC service thread 1-2(:) [org.jboss.as.clustering.infinispan.subsystem] - repl cache configuration started
19:13:46,459 DEBUG MSC service thread 1-2(:) [org.jboss.as.clustering.infinispan.subsystem] - sso cache configuration started
19:13:46,459 INFO MSC service thread 1-2(:) [org.infinispan.configuration.cache.EvictionConfigurationBuilder] - ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
19:13:46,459 INFO MSC service thread 1-2(:) [org.infinispan.configuration.cache.EvictionConfigurationBuilder] - ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
19:13:46,459 INFO MSC service thread 1-7(:) [org.infinispan.configuration.cache.EvictionConfigurationBuilder] - ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
19:13:46,459 DEBUG MSC service thread 1-2(:) [org.jboss.as.clustering.infinispan.subsystem] - dist cache configuration started
19:13:46,475 INFO MSC service thread 1-7(:) [org.infinispan.configuration.cache.EvictionConfigurationBuilder] - ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
19:13:46,475 DEBUG MSC service thread 1-7(:) [org.jboss.as.clustering.infinispan.subsystem] - default-host/demo cache configuration started
19:13:46,522 INFO ServerService Thread Pool -- 63(:) [org.infinispan.remoting.transport.jgroups.JGroupsTransport] - ISPN000078: Starting JGroups Channel
19:13:46,553 INFO ServerService Thread Pool -- 63(:) [stdout] -
19:13:46,553 INFO ServerService Thread Pool -- 63(:) [stdout] - -------------------------------------------------------------------
19:13:46,553 INFO ServerService Thread Pool -- 63(:) [stdout] - GMS: address=myMachine/web, cluster=web, physical address=127.0.0.1:55200
19:13:46,553 INFO ServerService Thread Pool -- 63(:) [stdout] - -------------------------------------------------------------------
19:13:48,596 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.remoting.transport.jgroups.JGroupsTransport] - New view accepted: [myMachine/web|0] [myMachine/web]
19:13:48,596 INFO ServerService Thread Pool -- 63(:) [org.infinispan.remoting.transport.jgroups.JGroupsTransport] - ISPN000094: Received new cluster view: [myMachine/web|0] [myMachine/web]
19:13:48,628 INFO ServerService Thread Pool -- 63(:) [org.infinispan.remoting.transport.jgroups.JGroupsTransport] - ISPN000079: Cache local address is myMachine/web, physical addresses are [127.0.0.1:55200]
19:13:48,628 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.remoting.transport.jgroups.JGroupsTransport] - Waiting on view being accepted
19:13:48,628 INFO ServerService Thread Pool -- 63(:) [org.infinispan.factories.GlobalComponentRegistry] - ISPN000128: Infinispan version: Infinispan 'Delirium' 5.2.6.Final
19:13:48,674 INFO ServerService Thread Pool -- 63(:) [org.infinispan.factories.TransactionManagerFactory] - ISPN000161: Using a batchMode transaction manager
19:13:48,690 INFO ServerService Thread Pool -- 62(:) [org.infinispan.factories.TransactionManagerFactory] - ISPN000161: Using a batchMode transaction manager
19:13:48,768 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.marshall.jboss.AbstractJBossMarshaller] - Using JBoss Marshalling
19:13:48,768 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.marshall.jboss.AbstractJBossMarshaller] - Using JBoss Marshalling
19:13:48,830 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.loaders.file.FileCacheStore] - Using PER_WRITE file sync mode
19:13:48,830 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.loaders.file.FileCacheStore] - Using PER_WRITE file sync mode
19:13:48,830 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.interceptors.InterceptorChain] - Interceptor chain size: 13
19:13:48,830 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.interceptors.InterceptorChain] - Interceptor chain size: 13
19:13:48,830 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.interceptors.InterceptorChain] - Interceptor chain is:
>> org.infinispan.interceptors.BatchingInterceptor
>> org.infinispan.interceptors.InvocationContextInterceptor
>> org.infinispan.interceptors.CacheMgmtInterceptor
>> org.infinispan.statetransfer.StateTransferInterceptor
>> org.infinispan.statetransfer.TransactionSynchronizerInterceptor
>> org.infinispan.interceptors.TxInterceptor
>> org.infinispan.interceptors.NotificationInterceptor
>> org.infinispan.interceptors.locking.OptimisticLockingInterceptor
>> org.infinispan.interceptors.EntryWrappingInterceptor
>> org.infinispan.interceptors.ClusteredActivationInterceptor
>> org.infinispan.interceptors.PassivationInterceptor
>> org.infinispan.interceptors.ReplicationInterceptor
>> org.infinispan.interceptors.CallInterceptor
19:13:48,830 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.interceptors.InterceptorChain] - Interceptor chain is:
>> org.infinispan.interceptors.BatchingInterceptor
>> org.infinispan.interceptors.InvocationContextInterceptor
>> org.infinispan.interceptors.CacheMgmtInterceptor
>> org.infinispan.statetransfer.StateTransferInterceptor
>> org.infinispan.statetransfer.TransactionSynchronizerInterceptor
>> org.infinispan.interceptors.TxInterceptor
>> org.infinispan.interceptors.NotificationInterceptor
>> org.infinispan.interceptors.locking.OptimisticLockingInterceptor
>> org.infinispan.interceptors.EntryWrappingInterceptor
>> org.infinispan.interceptors.ClusteredActivationInterceptor
>> org.infinispan.interceptors.PassivationInterceptor
>> org.infinispan.interceptors.ReplicationInterceptor
>> org.infinispan.interceptors.CallInterceptor
19:13:48,830 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.jmx.JmxUtil] - Object name jboss.infinispan:type=Cache,name="repl(repl_async)",manager="web",component=Cache already registered
19:13:48,830 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.jmx.JmxUtil] - Object name jboss.infinispan:type=Cache,name="default-host/demo(repl_async)",manager="web",component=Cache already registered
19:13:48,830 INFO ServerService Thread Pool -- 62(:) [org.infinispan.jmx.CacheJmxRegistration] - ISPN000031: MBeans were successfully registered to the platform MBean server.
19:13:48,830 INFO ServerService Thread Pool -- 63(:) [org.infinispan.jmx.CacheJmxRegistration] - ISPN000031: MBeans were successfully registered to the platform MBean server.
19:13:48,830 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.topology.LocalTopologyManagerImpl] - Node myMachine/web joining cache repl
19:13:48,830 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.topology.LocalTopologyManagerImpl] - Node myMachine/web joining cache default-host/demo
19:13:48,830 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.topology.LocalTopologyManagerImpl] - Updating local consistent hash(es) for cache repl: new topology = CacheTopology{id=0, currentCH=ReplicatedConsistentHash{members=[myMachine/web]}, pendingCH=null}
19:13:48,830 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.topology.LocalTopologyManagerImpl] - Updating local consistent hash(es) for cache default-host/demo: new topology = CacheTopology{id=0, currentCH=ReplicatedConsistentHash{members=[myMachine/web]}, pendingCH=null}
19:13:48,846 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.statetransfer.StateConsumerImpl] - Adding inbound state transfer for segments [0] of cache default-host/demo
19:13:48,846 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.statetransfer.StateConsumerImpl] - Adding inbound state transfer for segments [0] of cache repl
19:13:48,846 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.statetransfer.StateConsumerImpl] - Finished adding inbound state transfer for segments [0] of cache repl
19:13:48,846 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.statetransfer.StateConsumerImpl] - Finished adding inbound state transfer for segments [0] of cache default-host/demo
19:13:48,846 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.transaction.TransactionTable] - Topology changed, recalculating minTopologyId
19:13:48,846 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.transaction.TransactionTable] - Topology changed, recalculating minTopologyId
19:13:48,846 INFO ServerService Thread Pool -- 63(:) [org.jboss.as.clustering.infinispan] - JBAS010281: Cache repl démarré depuis le conteneur web
19:13:48,846 INFO ServerService Thread Pool -- 62(:) [org.jboss.as.clustering.infinispan] - JBAS010281: Cache default-host/demo démarré depuis le conteneur web
19:13:48,846 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.CacheImpl] - Started cache repl on myMachine/web
19:13:48,846 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.CacheImpl] - Started cache default-host/demo on myMachine/web
19:13:48,846 DEBUG ServerService Thread Pool -- 63(:) [org.infinispan.CacheImpl] - Started cache repl on myMachine/web
19:13:48,846 DEBUG ServerService Thread Pool -- 62(:) [org.infinispan.CacheImpl] - Started cache default-host/demo on myMachine/web
19:13:48,846 DEBUG ServerService Thread Pool -- 63(:) [org.jboss.as.clustering.infinispan.subsystem] - repl cache started
19:13:48,846 DEBUG ServerService Thread Pool -- 62(:) [org.jboss.as.clustering.infinispan.subsystem] - default-host/demo cache started
19:13:48,862 DEBUG MSC service thread 1-2(:) [org.jboss.as.clustering] - ViewAccepted: initial members set for partition web: 0 (org.jboss.as.clustering.impl.CoreGroupCommunicationService$GroupView@511401bb)
19:13:48,862 INFO MSC service thread 1-2(:) [org.jboss.as.clustering] - JBAS010238: Number of cluster members: 1
19:13:48,862 DEBUG MSC service thread 1-2(:) [org.jboss.as.clustering] - myMachine/web
19:13:48,862 DEBUG AsynchViewChangeHandler Thread(:) [org.jboss.as.clustering.impl.CoreGroupCommunicationService$ViewChangeEventProcessor.AsynchViewChangeHandler] - Begin AsynchViewChangeHandler Thread
Any ideas ?