5 Replies Latest reply on May 16, 2013 7:01 AM by Goran Marjanovic

    Upgrade from infinispan 5.1 to 5.2.x or 5.3.x

    Goran Marjanovic Newbie

      Hello 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

        • 1. Re: Upgrade from infinispan 5.1 to 5.2.x or 5.3.x
          Goran Marjanovic Newbie

          I've found again little free time to play around with this issue and I will just write reply to my self, maybe someone will got some idea why this is not working...

          I've tried to find on the forum and on the net, but unsuccessfully,..

           

          Ok, I downloaded the latest snapshoot (8.0.0.Alpha1) and tried to compare the differences,..

          I don't understand why there is directory structure changes from version to version, this is pretty mess for the end user and administration,.. but anyway,..

           

          I've updated few xsd shemas (for jboss-as-config and jboss-as-infinispan) that I can increase urn:level, so I've add the following xsd's to the AS 7.1.1.

          - jboss-as-config_1_3.xsd

          - jboss-as-config_1_4.xsd

          - jboss-as-config_2_0.xsd

           

          - jboss-as-infinispan_1_3.xsd

          - jboss-as-infinispan_1_4.xsd

           

          in the standalone-ha.xml I've tried to increase configuration version

           

          server xmlns="urn:jboss:domain:1.3"

          and also tried to increase to 1.4 and 2.0

           

          and also changed configuration version for the infinispan section

          subsystem xmlns="urn:jboss:domain:infinispan:1.4"

           

          but no luck with those changes also

           

          So, I'm curious if anyone tried to integrate newer version to the jboss 7 and snapshoot 8?

          In the snapshot 8 I can see that the version 5.2.1 is still used (resource-root path="infinispan-core-5.2.1.Final.jar"), but I can not deploy even that version

           

          On the download section for the infinispan there is separated jboss-modules jar files, but how to integrate them, where is the catch?

           

          I'm using CentOS and RHEL 6.3 with openjdk-1.7.0.9.x86_64/jre

           

          I really like this modular system, but sometimes, like now for me , is pretty mess when there is no log which will point to the error

           

          The only error what I get now is that the configuration is not correct:

          eg.

          Message: Unexpected element '{urn:jboss:domain:2.0}server'

          Ok, even if the xsd is deployed I assume that I have to update configuration parser also, and who knows what else

           

          It would be nice that somewhere is written what has to be updated, at least for the "Final" versions of the AS

           

          Cheers

          • 2. Re: Upgrade from infinispan 5.1 to 5.2.x or 5.3.x
            Tristan Tarrant Master

            First of all let me clear something up: the Infinispan + JGroups combo included by the application server should only really be used internally for clustering and caching (e.g. web/ejb sessions, 2nd level jpa cache, etc). The fact that you can import the Infinispan classes into your application is a side-effect, but don't expect to be able to upgrade the modules "for free" because sometimes it won't work (and as you've learned it doesn't) as the clustering subsystem might sometimes use internal classes which change from version to version.

             

            If you want to use newer Infinispan versions in your applications, refer to this:

             

            https://docs.jboss.org/author/display/ISPN/Infinispan+modules+for+JBoss+AS+7.x

            1 of 1 people found this helpful
            • 3. Re: Upgrade from infinispan 5.1 to 5.2.x or 5.3.x
              Goran Marjanovic Newbie

              Actually I expected such answer, but I just want to clarify with experts because other modules can be easyly updated but infinispan not.

              Ok, I understand that there are dependencies on some other modules and even on the core libraries of the AS, but that should be mentioned somewhere.

              You can understand it, I can understand it, but others probably not, and on the download page there is section for download separated as jboss modules, and as such I would expect that modules can be deployed and used on the AS.

               

              If other modules, as jgroups, can be upgraded without problems I would expect that infinispan should also, at least dependency modules should be provided and then the end user can decide use it or not.

               

              No hard feelings, but should be like that

               

              Thanks Tristan, the answer is very helpful, at least for me

              • 4. Re: Upgrade from infinispan 5.1 to 5.2.x or 5.3.x
                Vitalii Chepeliuk Newbie

                Yes but If I use configuration for infinispan-server-5.3.0 the same I used before for JDG6.1 have the same issue even after some refactoring with new XSD schema

                19:15:30,654 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 14) JBAS014613: Operation ("add") failed - address: ([

                    ("subsystem" => "datasources"),

                    ("jdbc-driver" => "jdbcDriver")

                ]) - failure description: "JBAS010441: Failed to load module for driver [driver]"

                19:15:30,931 INFO  [org.apache.coyote.http11] (MSC service thread 1-3) JBWEB003001: Coyote HTTP/1.1 initializing on : http-/127.0.0.1:8080

                19:15:30,941 INFO  [org.apache.coyote.ajp] (MSC service thread 1-4) JBWEB003046: Starting Coyote AJP/1.3 on ajp-/127.0.0.1:8009

                19:15:30,942 INFO  [org.apache.coyote.http11] (MSC service thread 1-3) JBWEB003000: Coyote HTTP/1.1 starting on: http-/127.0.0.1:8080

                19:15:31,099 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) 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.4.GA.jar:1.0.4.GA]

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

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

                    at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]

                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)

                    at org.jboss.as.security.plugins.DefaultAuthenticationCacheFactory.getCache(DefaultAuthenticationCacheFactory.java:47)

                    at org.jboss.as.security.plugins.JNDIBasedSecurityManagement.createSecurityDomainContext(JNDIBasedSecurityManagement.java:300)

                    at org.jboss.as.security.service.SecurityDomainService.start(SecurityDomainService.java:98)

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

                    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

                    ... 3 more

                • 5. Re: Upgrade from infinispan 5.1 to 5.2.x or 5.3.x
                  Goran Marjanovic Newbie

                  As Tristan already explained, you will not get upgrade on the easy way, there is much more what you have to do (probably upgrade of another "core jboss" components) that you can upgrade infinispan to the version greather that 5.1.x on jboss 7.1.1

                  I'm just curious if someone from infinispan core team tried to upgrade infinispan modules to the 7.1.1 AS which is the latest final revision provided to the public on the download page..

                  And if yes, just respond if it is possible or not, if the jboss core should be upgraded also..