Upgrade from infinispan 5.1 to 5.2.x or 5.3.x
xsmilex May 7, 2013 6:21 PMHello people,
I've been using JBoss and infinispan for a while and till now I didn't have much troubles which I couldn't solve it,
but now I'm stuck because I can not upgrade infinispan to the newer revision (it's a stupid reason why I have to update it, but I just have to do it to satisfy some managers )
So, I'm using JBoss 7.1.1 with infinispan-core-5.1.6.Final and JGroups-3.3.0.CR2
I didn't have any problems to upgrade jgroups even if I put it to the main slot or the new one slot=3.3, this just works as it should
But now, I tried the same with the infinispan and I've tried with several versions (5.2.1, 5.2.5, 5.3.0.Beta1) and unfortunately I failed with all that versions.
So what could be the cause that JBoss is rejecting versions greather than 5.1.x?
Is it some configuration issue or what? what should I change to allow jboss to start with newer version of infinispan?
I'm using JBoss in standalone configuration with the standalone-ha.xml config.
From the log I can see that somehow the new jar is not accepted because it throws NoSuchMethodError, but why?
What else has to be updated on the jboss to make it work?
I'm not a noob, actually I'm really experienced user/developer , but this drives me crazy for couple of hours now
I remember that I had some problems on jboss 6.0 but there was the problem with the updating to the correct xsd schema,.. here I don't see such problem...
The error log is the following:
00:08:46,867 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-23) JBoss Web Services - Stack CXF Server 4.0.2.GA
00:08:46,903 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-25) MSC00001: Failed to start service jboss.security.security-domain.other: org.jboss.msc.service.StartException in service jboss.security.security-domain.other: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_09-icedtea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_09-icedtea]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: java.lang.NoSuchMethodError: org.infinispan.util.concurrent.BoundedConcurrentHashMap.<init>(IILorg/infinispan/util/concurrent/BoundedConcurrentHashMap$Eviction;Lorg/infinispan/util/concurrent/BoundedConcurrentHashMap$EvictionListener;)V
at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory$1.<init>(DefaultAuthenticationCacheFactory.java:48) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory.getCache(DefaultAuthenticationCacheFactory.java:47) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.plugins.JNDIBasedSecurityManagement.createSecurityDomainContext(JNDIBasedSecurityManagement.java:300) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.service.SecurityDomainService.start(SecurityDomainService.java:98) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
00:08:46,901 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-27) MSC00001: Failed to start service jboss.security.security-domain.jboss-ejb-policy: org.jboss.msc.service.StartException in service jboss.security.security-domain.jboss-ejb-policy: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_09-icedtea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_09-icedtea]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: java.lang.NoSuchMethodError: org.infinispan.util.concurrent.BoundedConcurrentHashMap.<init>(IILorg/infinispan/util/concurrent/BoundedConcurrentHashMap$Eviction;Lorg/infinispan/util/concurrent/BoundedConcurrentHashMap$EvictionListener;)V
at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory$1.<init>(DefaultAuthenticationCacheFactory.java:48) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory.getCache(DefaultAuthenticationCacheFactory.java:47) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.plugins.JNDIBasedSecurityManagement.createSecurityDomainContext(JNDIBasedSecurityManagement.java:300) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.service.SecurityDomainService.start(SecurityDomainService.java:98) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
00:08:46,901 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-9) MSC00001: Failed to start service jboss.security.security-domain.jboss-web-policy: org.jboss.msc.service.StartException in service jboss.security.security-domain.jboss-web-policy: Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_09-icedtea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_09-icedtea]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
Caused by: java.lang.NoSuchMethodError: org.infinispan.util.concurrent.BoundedConcurrentHashMap.<init>(IILorg/infinispan/util/concurrent/BoundedConcurrentHashMap$Eviction;Lorg/infinispan/util/concurrent/BoundedConcurrentHashMap$EvictionListener;)V
at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory$1.<init>(DefaultAuthenticationCacheFactory.java:48) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory.getCache(DefaultAuthenticationCacheFactory.java:47) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.plugins.JNDIBasedSecurityManagement.createSecurityDomainContext(JNDIBasedSecurityManagement.java:300) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.security.service.SecurityDomainService.start(SecurityDomainService.java:98) [jboss-as-security-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
... 3 more
00:08:46,937 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-22) Starting Coyote HTTP/1.1 on http--10.50.135.16-8080
00:08:46,937 INFO [org.apache.coyote.ajp.AjpProtocol] (MSC service thread 1-3) Starting Coyote AJP/1.3 on ajp--10.50.135.16-8009
00:08:46,977 INFO [org.jboss.modcluster.ModClusterService] (MSC service thread 1-28) Initializing mod_cluster 1.2.0.Final
00:08:46,998 INFO [org.jboss.modcluster.advertise.impl.AdvertiseListenerImpl] (MSC service thread 1-28) Listening to proxy advertisements on 224.0.1.105:23364
00:08:47,088 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 33) JBAS014612: Operation ("add") failed - address: ([
("subsystem" => "infinispan"),
("cache-container" => "web"),
("replicated-cache" => "repl")
]): java.lang.NoSuchMethodError: org.infinispan.configuration.cache.LoaderConfigurationBuilder.fetchPersistentState(Z)Lorg/infinispan/configuration/cache/LoaderConfigurationBuilder;
at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.processModelNode(CacheAdd.java:410)
at org.jboss.as.clustering.infinispan.subsystem.ClusteredCacheAdd.processModelNode(ClusteredCacheAdd.java:70)
at org.jboss.as.clustering.infinispan.subsystem.SharedStateCacheAdd.processModelNode(SharedStateCacheAdd.java:47)
at org.jboss.as.clustering.infinispan.subsystem.CacheAdd.performRuntime(CacheAdd.java:165)
at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:385) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:272) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractOperationContext.completeStep(AbstractOperationContext.java:200) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:311) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_09-icedtea]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_09-icedtea]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09-icedtea]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.0.0.GA.jar:2.0.0.GA]
Thanks