1 2 Previous Next 25 Replies Latest reply on Jul 5, 2012 10:58 PM by Paul Ferraro

    jboss-as7-quickstart problem

    Ivica JBoss User Newbie

      Hi,

       

      I can't make the JBoss example in the quickstart to work.

       

      I am working on Windows 7, with Intellij Idea. Examples are downloaded from https://github.com/infinispan/infinispan-quickstart, and imported in Idea as Maven projects. Clustered cache, embeded cache and CDI examples are working, but JBoss 7 example is not working.

       

      I was testing with JBoss versions: jboss-as-7.1.0.CR1b, jboss-as-7.1.0.Beta1b and jboss-as-7.0.2.Final with the same result. I used jdk1.6.0_30 and jdk1.7.0_02 for the JBoss startup.

       

      local-cache in standalone mode:

       

      Application is deployed without errors. When accessing http://localhost:8080/infinispan-cdi/index.jsf I get the following exception:

       

      12:22:27,263 SCHWERWIEGEND [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-1) Error Rendering View[/home.xhtml]: javax.el.ELException: /home.xhtml @40,59 value="#{controller.self}": java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getCacheConfiguration()Lorg/infinispan/configuration/cache/Configuration;

                at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:114) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

                at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

                at javax.faces.component.UIOutput.getValue(UIOutput.java:169) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

                at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:205) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:355) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:164) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

                at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.0.0.Beta1.jar:2.0.0.Beta1]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]

                at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62) [weld-core-1.1.4.Final.jar:2011-11-22 20:01]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]

                at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) [solder-impl-3.1.0.CR1.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]

                at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) [solder-impl-3.1.0.CR1.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.7.Final.jar:]

                at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:151) [jboss-as-web-7.1.0.CR1b.jar:7.1.0.CR1b]

                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.7.Final.jar:]

                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.7.Final.jar:]

                at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:897) [jbossweb-7.0.7.Final.jar:]

                at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:626) [jbossweb-7.0.7.Final.jar:]

                at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:2033) [jbossweb-7.0.7.Final.jar:]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_30]

      Caused by: java.lang.NoSuchMethodError: org.infinispan.AdvancedCache.getCacheConfiguration()Lorg/infinispan/configuration/cache/Configuration;

                at org.infinispan.quickstart.jbossas7.Controller.getSelf(Controller.java:107) [classes:]

                at org.infinispan.quickstart.jbossas7.Controller$Proxy$_$$_WeldClientProxy.getSelf(Controller$Proxy$_$$_WeldClientProxy.java) [classes:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_30]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_30]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_30]

                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_30]

                at javax.el.BeanELResolver.getValue(BeanELResolver.java:302) [jboss-el-api_2.2_spec-1.0.0.Final.jar:1.0.0.Final]

                at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                at org.apache.el.parser.AstValue.getValue(AstValue.java:169) [jbossweb-7.0.7.Final.jar:]

                at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:189) [jbossweb-7.0.7.Final.jar:]

                at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:50) [weld-core-1.1.4.Final.jar:2011-11-22 20:01]

                at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109) [jsf-impl-2.1.5-jbossorg-1.jar:2.1.5-SNAPSHOT]

                ... 38 more

       

       

      distributed data-grid using domain mode

       

      Application is not deployed.

      Log messages:

       

      13:40:05,502 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Starting deployment of "infinispan-jboss-as7.war"

      13:40:05,951 INFO  [org.jboss.weld] (MSC service thread 1-1) Processing CDI deployment: infinispan-jboss-as7.war

      13:40:06,026 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named Resources in deployment unit deployment "infinispan-jboss-as7.war" are as follows:

       

       

                java:global/infinispan-jboss-as7/Resources!org.infinispan.quickstart.jbossas7.Resources

                java:app/infinispan-jboss-as7/Resources!org.infinispan.quickstart.jbossas7.Resources

                java:module/Resources!org.infinispan.quickstart.jbossas7.Resources

                java:global/infinispan-jboss-as7/Resources

                java:app/infinispan-jboss-as7/Resources

                java:module/Resources

       

       

      13:40:06,060 INFO  [org.jboss.weld] (MSC service thread 1-1) Starting Services for CDI deployment: infinispan-jboss-as7.war

      13:40:06,075 INFO  [org.jboss.weld] (MSC service thread 1-1) Starting weld service

      13:40:06,150 INFO  [org.infinispan.cdi.InfinispanExtension] (MSC service thread 1-1) ISPN017001: Infinispan CDI extension version: 5.1.0.CR2

      13:40:06,166 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Solder Config XML provider starting...

      13:40:06,169 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Loading XmlDocumentProvider: org.jboss.solder.config.xml.bootstrap.ResourceLoaderXmlDocumentProvider

      13:40:06,178 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-1) Reading XML file: vfs:/C:/Java/jboss/jboss-as-7.1.0.CR1b/content/infinispan-jboss-as7.war/WEB-INF/lib/infinispan-cdi-5.1.0.CR2.jar/META-INF/beans.xml

      13:40:06,188 INFO  [org.jboss.solder.Version] (MSC service thread 1-1) Solder null (build id: null)

      13:40:08,406 INFO  [org.jboss.solder.bean.defaultbean.DefaultBeanExtension] (MSC service thread 1-1) Preventing install of default bean Producer Method [EmbeddedCacheManager] with qualifiers [@Any @Synthetic] declared as [[method] @Produces @ApplicationScoped @DefaultBean public org.infinispan.cdi.DefaultEmbeddedCacheManagerProducer.getDefaultEmbeddedCacheManager(Instance<EmbeddedCacheManager>, Configuration)]

      13:40:08,703 INFO  [org.jboss.as.server] (host-controller-connection-threads - 4) JBAS015856: Undeploy of deployment "infinispan-jboss-as7.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env.\"org.infinispan.quickstart.jbossas7.Resources\".containerjboss.naming.context.java.jboss.infinispan.jboss-as7-quickstartMissing[jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env.\"org.infinispan.quickstart.jbossas7.Resources\".containerjboss.naming.context.java.jboss.infinispan.jboss-as7-quickstart]"]}

      13:40:08,714 INFO  [org.jboss.weld] (MSC service thread 1-7) Stopping weld service

      13:40:08,796 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Stopped deployment infinispan-jboss-as7.war in 93ms

      13:40:08,797 INFO  [org.jboss.as.controller] (host-controller-connection-threads - 4) JBAS014774: Service status report

      JBAS014775:    New missing/unsatisfied dependencies:

            service jboss.naming.context.java.jboss.infinispan.jboss-as7-quickstart (missing) dependents: [service jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env."org.infinispan.quickstart.jbossas7.Resources".container]

       

       

      I didn't change anything in the example packages.

       

      Thanks in Advance

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

          I'm a bit confused here. If you're running the AS7 quickstart, shouldn't you be hitting http://localhost:8080/infinispan-jboss-as7/home.jsf instead of http://localhost:8080/infinispan-cdi/index.jsf ?

           

          Btw, I've run the quickstart with AS7 7.1.0.CR1b and it deploys fine and http://localhost:8080/infinispan-jboss-as7/home.jsf is accessed without problems: https://gist.github.com/1843767

          • 2. Re: jboss-as7-quickstart problem
            Ivica JBoss User Newbie

            Hi,

             

            I will change the log level to TRACE and try to figure it out why do I have problems on my PC.

             

            Sorry, I copy/paste the wrong link. I was using http://localhost:8080/infinispan-jboss-as7/home.jsf in the test.


            • 3. Re: jboss-as7-quickstart problem
              Ivica JBoss User Newbie

              Hi,

               

              I just tried it with AS 7.1.0 FINAL and got the same exception in the standalone example like in the distributed on the CR1 version:

               

              13:40:08,703 INFO  [org.jboss.as.server] (host-controller-connection-threads - 4) JBAS015856: Undeploy of deployment "infinispan-jboss-as7.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env.\"org.infinispan.quickstart.jbossas7.Resources\".containerjboss.naming.context.java.jboss.infinispan.jboss-as7-quickstartMissing[jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env.\"org.infinispan.quickstart.jbossas7.Resources\".containerjboss.naming.context.java.jboss.infinispan.jboss-as7-quickstart]"]}

               

              I think I will try it on Ubuntu from scratch...

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

                As Paul hinted in the other forum thread, seems like your app might be bundling an Infinispan jar. Inspect the war, or simply start the quickstart from scracth. I had no problems with the quickstart as is. If you still have problems, please provide detailed, step by step to replicate your issue with the quickstart.

                 

                p.s. That last message is an INFO message, so does not really say what the error is.

                • 5. Re: jboss-as7-quickstart problem
                  Ivica JBoss User Newbie

                  Yes, there was a problem with different version of libraries.

                   

                  But now it looks like a JNDI problem

                   

                  10:32:33,665 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "infinispan-jboss-as7.war"

                  10:32:33,814 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016002: Processing weld deployment infinispan-jboss-as7.war

                  10:32:33,860 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings for session bean named Resources in deployment unit deployment "infinispan-jboss-as7.war" are as follows:

                   

                      java:global/infinispan-jboss-as7/Resources!org.infinispan.quickstart.jbossas7.Resources

                      java:app/infinispan-jboss-as7/Resources!org.infinispan.quickstart.jbossas7.Resources

                      java:module/Resources!org.infinispan.quickstart.jbossas7.Resources

                      java:global/infinispan-jboss-as7/Resources

                      java:app/infinispan-jboss-as7/Resources

                      java:module/Resources

                   

                  10:32:33,882 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) JBAS016005: Starting Services for CDI deployment: infinispan-jboss-as7.war

                  10:32:33,908 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016008: Starting weld service for deployment infinispan-jboss-as7.war

                  10:32:33,953 INFO  [org.infinispan.cdi.InfinispanExtension] (MSC service thread 1-7) ISPN017001: Infinispan CDI extension version: 5.1.1.FINAL

                  10:32:33,965 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-7) Solder Config XML provider starting...

                  10:32:33,967 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-7) Loading XmlDocumentProvider: org.jboss.solder.config.xml.bootstrap.ResourceLoaderXmlDocumentProvider

                  10:32:33,976 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-7) Reading XML file: vfs:/content/infinispan-jboss-as7.war/WEB-INF/beans.xml

                  10:32:33,988 INFO  [org.jboss.solder.config.xml.bootstrap.XmlConfigExtension] (MSC service thread 1-7) Reading XML file: vfs:/content/infinispan-jboss-as7.war/WEB-INF/lib/infinispan-cdi-5.1.1.FINAL.jar/META-INF/beans.xml

                  10:32:33,996 INFO  [org.jboss.solder.Version] (MSC service thread 1-7) Solder 3.1.0.Final (build id: 3.1.0.Final)

                  10:32:34,489 INFO  [org.jboss.solder.bean.defaultbean.DefaultBeanExtension] (MSC service thread 1-7) Preventing install of default bean Producer Method [EmbeddedCacheManager] with qualifiers [@Any @Synthetic] declared as [[method] @Produces @ApplicationScoped @DefaultBean public org.infinispan.cdi.DefaultEmbeddedCacheManagerProducer.getDefaultEmbeddedCacheManager(Instance<EmbeddedCacheManager>, Configuration)]

                  10:32:34,734 INFO  [org.jboss.as.server] (management-handler-threads - 17) JBAS015870: Deploy of deployment "infinispan-jboss-as7.war" was rolled back with failure message {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env.\"org.infinispan.quickstart.jbossas7.Resources\".containerjboss.naming.context.java.jboss.infinispan.jboss-as7-quickstartMissing[jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env.\"org.infinispan.quickstart.jbossas7.Resources\".containerjboss.naming.context.java.jboss.infinispan.jboss-as7-quickstart]"]}

                  10:32:34,738 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016009: Stopping weld service for deployment infinispan-jboss-as7.war

                  10:32:34,747 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015877: Stopped deployment infinispan-jboss-as7.war in 12ms

                  10:32:34,748 INFO  [org.jboss.as.controller] (management-handler-threads - 17) JBAS014774: Service status report

                  JBAS014775:    New missing/unsatisfied dependencies:

                        service jboss.naming.context.java.jboss.infinispan.jboss-as7-quickstart (missing) dependents: [service jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env."org.infinispan.quickstart.jbossas7.Resources".container]

                   

                  Anyway, here is the content of the application WEB-INF/lib directory:

                   

                  cache-api-0.4.jar

                  commons-pool-1.5.6.jar

                  infinispan-cdi-5.1.1.FINAL.jar

                  infinispan-client-hotrod-5.1.1.FINAL.jar

                  jboss-logging-3.1.0.CR2.jar

                  rhq-pluginAnnotations-3.0.4.jar

                  solder-api-3.1.0.Final.jar

                  solder-impl-3.1.0.Final.jar

                  solder-logging-3.1.0.Final.jar

                   

                  Is there something that should not be included?

                   

                  I changed to infinispan 5.1.1.FINAL because JBoss 7.1.0 FINAL is using it.

                   

                  And I also tried with the infinispan 5.1.0.CR2 on the different JBoss 7.1 versions (beta, CR, FINAL). And I repeated all the steps again on Ubuntu. And also tried with inlcuding and excluding infinispan jars from the war package by using the "provided" scope in the maven file for the infinispan-cdi and infinispan-core packages.

                  So, I guess that I am missing something in the environment or the configuration setup.

                   

                  To use the quickstarts I did the following:

                  1. downloaded package from https://github.com/infinispan/infinispan-quickstart/downloads

                  2. created a new project in idea by using the parent maven file

                  3. changed the standalone (and domain) configuration file to include the new cache

                  4. started jboss

                  5. started mvn clean package jboss-as:deploy

                   

                  And the jboss example is the only one not working.

                  • 6. Re: jboss-as7-quickstart problem
                    Ivica JBoss User Newbie

                    The standalone example is working if I add the JNDI information to the cache-container configuration in the standalone.xml

                     

                    <cache-container name="jboss-as7-quickstart" default-cache="jboss-as7-quickstart-cache" jndi-name="java:jboss/infinispan/jboss-as7-quickstart">

                         <local-cache name="jboss-as7-quickstart-cache"/>

                    </cache-container>

                     

                    However, this approach doesn't help in the domain example. If I add jndi-name in the domain.xml, I still have the same problem:

                     

                    JBAS014775:New missing/unsatisfied dependencies:

                    service jboss.naming.context.java.jboss.infinispan.jboss-as7-quickstart (missing) dependents: [service jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env."org.infinispan.quickstart.jbossas7.Resources".container]

                     

                    I don't understand why do I have to add jndi-name attribute in the standalone.xml...

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

                      I've replicated the issue and it's currently being investigated

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

                        The problem is that you're not adding the cache-container definition to the right profile. Make sure you add it to the 'full-ha' profile (or whatever profile you have associated to the server group in domain.xml), and the cache container definition should really be something like this:

                         

                                       <cache-container name="jboss-as7-quickstart" default-cache="jboss-as7-quickstart-cache">

                                           <transport lock-timeout="60000"/>

                                           <distributed-cache name="jboss-as7-quickstart-cache" owners="1" mode="SYNC"/>

                                       </cache-container>

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

                          Actually, to be precise:

                           

                                         <cache-container name="jboss-as7-quickstart" default-cache="jboss-as7-quickstart-cache">

                                             <transport lock-timeout="60000"/>

                                             <distributed-cache name="jboss-as7-quickstart-cache" owners="1" mode="SYNC" start="EAGER"/>

                                         </cache-container>

                          • 10. Re: jboss-as7-quickstart problem
                            Arun Ramachandran Newbie

                            Hi,

                             

                                        My apologies for making multiple posts in this forum. Even I am trying to deploy the sample application on a JBoss v 7.0.2 server. During deployment I am getting the following error

                             

                            12:34:15,826 WARN  [org.jboss.modules] (MSC service thread 1-2) 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.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:320) [:1.6.0_16]

                            .

                            .

                            .

                            .

                             

                             

                            Caused by: java.lang.NoClassDefFoundError: org/infinispan/api/BasicCache

                                        at java.lang.ClassLoader.defineClass1(Native Method) [:1.6.0_16]

                                        at java.lang.ClassLoader.defineClass(ClassLoader.java:621) [:1.6.0_16]

                                        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) [:1.6.0_16]

                                        at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)

                                        ... 38 more

                            Caused by: java.lang.ClassNotFoundException: org.infinispan.api.BasicCache from [Module "deployment.infinispan-jboss-as7.war:main" from Service Module Loader]

                                        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

                                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)

                                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)

                                        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)

                                        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:320) [:1.6.0_16]

                                        ... 42 more

                             

                            I have used the same steps as Ivica has and tested the application in standalone mode. My lib directory has the same set of jars although I have changed the infinispan.version to 5.1.2.FINAL. Any clues on why it’s referring to these inexistent classes??

                             

                            Thanks

                             

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

                              You seem to be using the Infinispan Hot Rod client (org/infinispan/client/hotrod/RemoteCache), but wherever you've put this (??), it cannot access the Infinispan core jars... This is not part of the quickstart btw.

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

                                I am seeing the same error in server.log file. I have used the config entry provided by Galder and made sure that its added under full-ha profile (thats the only one profile I have).

                                 

                                Here is the error trace in server.log file:

                                21:28:34,289 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "infinispan-jboss-as7.war"

                                21:28:34,291 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

                                JBAS014775: New missing/unsatisfied dependencies:

                                service jboss.naming.context.java.jboss.infinispan.jboss-as7-quickstart (missing) dependents: [service jboss.naming.context.java.module.infinispan-jboss-as7.infinispan-jboss-as7.env."org.infinispan.quickstart.jbossas7.Resources".container]

                                 

                                21:28:34,295 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 5264ms - Started 237 of 388 services (17 services failed or missing dependencies, 134 services are passive or on-demand)

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

                                  After adding jndi-name and setting owners to 2 it has started working fine.

                                   

                                  <cache-container name="jboss-as7-quickstart" default-cache="jboss-as7-quickstart-cache" jndi-name="java:jboss/infinispan/jboss-as7-quickstart">

                                  <transport lock-timeout="60000"/>

                                  <distributed-cache name="jboss-as7-quickstart-cache" owners="2" mode="ASYNC"/>

                                  </cache-container>

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

                                    @Rahul, the quickstarts have not been updated for AS 7.1 yet (hence why you had to made those changes - it's the JNDI changes that had the desired impact).

                                     

                                    Anyway, the reason of not updating is cos domain had some issues with 7.1.0. With 7.1.1 out now, I need to verify whether those still happen.

                                    1 2 Previous Next