1 2 Previous Next 25 Replies Latest reply: Jul 5, 2012 10:58 PM by Paul Ferraro Go to original post RSS
  • 15. Re: jboss-as7-quickstart problem
    manish suriya Newbie

    Hi Rahul,

    I am getting the same error  even if adding the jndi-name to the cache container. Can you please tell me where else u have made changes.

  • 16. Re: jboss-as7-quickstart problem
    Galder Zamarreño Master

    Can you try with AS 7.1.2 and the quickstart as is in https://github.com/infinispan/infinispan-quickstart/tree/master/jboss-as7 ? thx

  • 17. Re: jboss-as7-quickstart problem
    manish suriya Newbie

    Thanks fo reply.

    Did u mean to use AS 7.1.1.Final , I cannt see 7.1.2 on the downlaod page. And if I am correct the way cache is loaded we have to use java:jboss/infinispan/container/jboss-as7-quickstart instead of java:jboss/infinispan/jboss-as7-quickstart after 7.1 release.   The quickstart uses java:jboss/infinispan/jboss-as7-quickstart  ,  Shall I change the it and then try to run ?

     

    How/what  should be my cache-container looks in that case.

     

    Thanks again for your help !!

  • 18. Re: jboss-as7-quickstart problem
    Rahul Gagrani Newbie

    Manish, thats the only thing in my domain.xml, I am using 7.1.1 Final.

  • 19. Re: jboss-as7-quickstart problem
    potemkin Newbie

    I couldn't get it to work using full-ha profile in 7.1.1.Final, the exception is: javax.naming.NameNotFoundException: infinispan/jboss-as7-quickstart -- service jboss.naming.context.java.jboss.infinispan.jboss-as7-quickstart

  • 20. Re: jboss-as7-quickstart problem
    Galder Zamarreño Master

    One sec guys, I think master might not have been updated with a pull req I sent. Let me update it first...

  • 21. Re: jboss-as7-quickstart problem
    Galder Zamarreño Master

    Ok guys, just merged the commits that were missing to get the quickstarts work on AS 7.1. Please update the Git repo with the master changes, and give it a go following the instructions in the quickstart, and use AS 7.1.1

  • 22. Re: jboss-as7-quickstart problem
    manish suriya Newbie

    Yes..its working fine now with AS 7.1.1. Thanks Galder !!

    But what I need to make it work with AS 7.0.2. I cannt upgrade to 7.1.1. I am getting below exception with 7.0.2

     

    11:36:38,779 WARN  [org.jboss.modules] (MSC service thread 1-3) Failed to define class org.infinispan.client.hotrod.RemoteCache in Module "deployment.infinispan-jboss-as7.war:main" from Service Module Loader: java.lang.LinkageError: Failed to link org/infinispan/client/hotrod/RemoteCache (Module "deployment.infinispan-jboss-as7.war:main" from Service Module Loader)
            at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
            at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
            at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
            at org.jboss.modules.Module.loadModuleClass(Module.java:590)
            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [:1.6.0_03]
            at java.lang.Class.forName0(Native Method) [:1.6.0_03]
            at java.lang.Class.forName(Class.java:247) [:1.6.0_03]
            at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95) [:1.6.0_03]
            at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107) [:1.6.0_03]
            at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) [:1.6.0_03]
            at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:50) [:1.6.0_03]
            at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:120) [:1.6.0_03]
            at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) [:1.6.0_03]
            at sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:67) [:1.6.0_03]
            at java.lang.reflect.Field.getGenericType(Field.java:223) [:1.6.0_03]
            at org.jboss.weld.introspector.jlr.WeldFieldImpl.of(WeldFieldImpl.java:56) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:147) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:98) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:54) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:42) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:206)
            at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:100)
            at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:515)
            at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:183) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBeans(ExtensionBeanDeployer.java:72) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:341) [weld-core-1.1.2.Final.jar:2011-07-26 15:02]
            at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]
            at org.jboss.as.weld.services.WeldService.start(WeldService.java:89) [jboss-as-weld-7.0.2.Final.jar:7.0.2.Final]
            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [:1.6.0_03]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_03]
            at java.lang.Thread.run(Thread.java:619) [:1.6.0_03]
    Caused by: java.lang.NoClassDefFoundError: org/infinispan/api/BasicCache
            at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_03]
            at java.lang.ClassLoader.defineClass(ClassLoader.java:620) [:1.6.0_03]
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [:1.6.0_03]
            at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
            ... 37 more
    
    11:36:38,873 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."infinispan-jboss-as7.war".WeldService: org.jboss.msc.service.StartException in service jboss.deployment.unit."infinispan-jboss-as7.war".WeldService: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.infinispan.cdi.InfinispanExtension
            at org.jboss.as.weld.services.WeldService.start(WeldService.java:96)
            at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)
            at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [:1.6.0_03]
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_03]
            at java.lang.Thread.run(Thread.java:619) [:1.6.0_03]
    Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.infinispan.cdi.InfinispanExtension
            at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:189)
            at org.jboss.weld.bootstrap.ExtensionBeanDeployer.deployBeans(ExtensionBeanDeployer.java:72)
            at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:341)
            at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:80)
            at org.jboss.as.weld.services.WeldService.start(WeldService.java:89)
            ... 5 more
    Caused by: java.lang.LinkageError: Failed to link org/infinispan/client/hotrod/RemoteCache (Module "deployment.infinispan-jboss-as7.war:main" from Service Module Loader)
            at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
            at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:261)
            at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:76)
            at org.jboss.modules.Module.loadModuleClass(Module.java:590)
            at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
            at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
            at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) [:1.6.0_03]
            at java.lang.Class.forName0(Native Method) [:1.6.0_03]
            at java.lang.Class.forName(Class.java:247) [:1.6.0_03]
            at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95) [:1.6.0_03]
            at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107) [:1.6.0_03]
            at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) [:1.6.0_03]
            at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:50) [:1.6.0_03]
            at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:120) [:1.6.0_03]
            at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31) [:1.6.0_03]
            at sun.reflect.generics.repository.FieldRepository.getGenericType(FieldRepository.java:67) [:1.6.0_03]
            at java.lang.reflect.Field.getGenericType(Field.java:223) [:1.6.0_03]
            at org.jboss.weld.introspector.jlr.WeldFieldImpl.of(WeldFieldImpl.java:56)
            at org.jboss.weld.introspector.jlr.WeldClassImpl.<init>(WeldClassImpl.java:147)
            at org.jboss.weld.introspector.jlr.WeldClassImpl.of(WeldClassImpl.java:98)
            at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:54)
            at org.jboss.weld.resources.ClassTransformer$TransformTypeToWeldClass.apply(ClassTransformer.java:42)
            at com.google.common.collect.ComputingConcurrentHashMap.compute(ComputingConcurrentHashMap.java:206)
            at com.google.common.collect.ComputingConcurrentHashMap.apply(ComputingConcurrentHashMap.java:100)
            at com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:515)
            at org.jboss.weld.resources.ClassTransformer.loadClass(ClassTransformer.java:183)
            ... 9 more
    Caused by: java.lang.NoClassDefFoundError: org/infinispan/api/BasicCache
            at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_03]
            at java.lang.ClassLoader.defineClass(ClassLoader.java:620) [:1.6.0_03]
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [:1.6.0_03]
            at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
            ... 37 more
    
    11:36:39,201 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "infinispan-jboss-as7.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"infinispan-jboss-as7.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"infinispan-jboss-as7.war\".WeldService: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.infinispan.cdi.InfinispanExtension"},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env.\"org.infinispan.quickstart.jbossas7.Resources\".container missing [ jboss.naming.context.java.jboss.infinispan.container.web ]"]}
    11:36:39,358 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment infinispan-jboss-as7.war in 157ms
    11:36:39,358 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"infinispan-jboss-as7.war\".WeldService" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"infinispan-jboss-as7.war\".WeldService: org.jboss.weld.resources.spi.ResourceLoadingException: Error loading class org.infinispan.cdi.InfinispanExtension"},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env.\"org.infinispan.quickstart.jbossas7.Resources\".container missing [ jboss.naming.context.java.jboss.infinispan.container.web ]"]}}}
    
  • 23. Re: jboss-as7-quickstart problem
    manish suriya Newbie

    Galder Zamarreño wrote:

     

    Ok guys, just merged the commits that were missing to get the quickstarts work on AS 7.1. Please update the Git repo with the master changes, and give it a go following the instructions in the quickstart, and use AS 7.1.1

    Hi Galder,

     

    The QuickStart is just working fine in JBoss AS 7.1.1 .

    However when I use <distributable/> to the web.xml , I am getting below error. Could you please tell me what is missing and how I can fix the problem.

     

     

     

    JBAS014775:
    New missing/unsatisfied dependencies:
    
    
    service jboss.jgroups.channel.web (missing) dependents: [service jboss.cluster.web]
    
    
    14:25:18,385 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.cluster.webjboss.jgroups.channel.webMissing[jboss.cluster.webjboss.jgroups.channel.web]"]}}}
    14:25:18,401 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back 
    

     

    I am using following entry in stnadalone.xml of as 7.1.1 inorder to achieve web session persistence.

            
    <cache-container name="web" default-cache="local">
                
    <local-cache name="local" batching="true">
                    
    <file-store passivation="false"/>
                
    </local-cache>
            
    </cache-container>
    
    
    

     

    Thanks for your help !!

    -Manish

  • 24. Re: jboss-as7-quickstart problem
    Galder Zamarreño Master

    Hmmm, seems like if you mark your web.xml as distributable, then it needs to be clustered and not local. Why have a local cache for distributed web sessions?

  • 25. Re: jboss-as7-quickstart problem
    Paul Ferraro Master

    https://issues.jboss.org/browse/AS7-5124

     

    For now, you'll need to use an <invalidation-cache/> instead of <local-cache/>, but you'll need to start your server using standalone-ha.xml (as well as include a <transport/> in the web cache-container.  If it's web session persistence across server restarts that you're after, then you'll also want to disable purging. e.g.

    <file-store passivation="false" purge="false"/>

1 2 Previous Next