3 Replies Latest reply on Feb 17, 2011 10:33 AM by Galder Zamarreño

    Infinispan REST on JBoss 6

    c user Newbie

      It seems that Infinispan REST doesn't deploy on JBoss 6 out of the box?  If so, is there anything special that needs to be done?  (Apologies--I scanned the wiki--maybe I missed something...?)

       

      Deploying (I've tried this w/ 4.2 and 5.0, these from 5.0A2)

       

      14:33:55,497 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfs:///Users/xxx/servers/jboss/jboss-6.0.0.Final/server/default/deploy/infinispan.war state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///Users/xxx/servers/jboss/jboss-6.0.0.Final/server/default/deploy/infinispan.war

                at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

      :

      Caused by: java.lang.Error: Error visiting "/Users/xxx/servers/jboss/jboss-6.0.0.Final/server/default/deploy/infinispan.war/WEB-INF/lib/scala-library-2.8.1.jar/scala/Function$$anonfun$untupled$2.class"

                at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268) [jboss-classloading-vfs.jar:2.2.0.GA]

                at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408) [jboss-vfs.jar:3.0.0.GA]

                at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]

                at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396) [jboss-vfs.jar:3.0.0.GA]

                at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102) [jboss-classloading-vfs.jar:2.2.0.GA]

                at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181) [:2.2.0.GA]

                at org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111) [:1.0.0.GA]

                at org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96) [:1.0.0.GA]

                at org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:95) [:1.0.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

                ... 43 more

       

       

      Adding a jboss-scanning of the form (Edit: XML using wiki markup)

      {code:xml}

      <scanning xmlns="urn:jboss:scanning:1.0">

       

        <path name="WEB-INF/lib/scala-library-2.8.1.jar">

           <exclude name="scala" recurse="true"/>

        </path>

       

      </scanning>

      {code}

       

       

      And then I see this

       

      14:36:46,873 ERROR [STDERR] SLF4J: Found binding in [vfs:/Users/xxx/servers/jboss/jboss-6.0.0.Final/server/default/deploy/infinispan.war/WEB-INF/lib/slf4j-simple-1.5.8.jar/org/slf4j/impl/StaticLoggerBinder.class]

      14:36:46,873 ERROR [STDERR] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

      14:36:47,152 ERROR [[/infinispan]] StandardWrapper.Throwable: java.lang.reflect.InvocationTargetException

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

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

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

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

                at org.infinispan.rest.StartupListener.getMcInjectedCacheManager(StartupListener.scala:60) [:]

                at org.infinispan.rest.StartupListener.init(StartupListener.scala:27) [:];

      dependency.jar:2.2.0.GA]

          :

                at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

                at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                at java.lang.Thread.run(Thread.java:680) [:1.6.0_22]

      Caused by: org.jboss.kernel.spi.registry.KernelRegistryEntryNotFoundException: Entry not found with name: DefaultCacheManager

                at org.jboss.kernel.plugins.registry.AbstractKernelRegistry.getEntry(AbstractKernelRegistry.java:96) [jboss-kernel.jar:2.2.0.GA]

                ... 89 more

       

       

      14:36:47,269 ERROR [[/infinispan]] Servlet /infinispan threw load() exception: org.jboss.kernel.spi.registry.KernelRegistryEntryNotFoundException: Entry not found with name: DefaultCacheManager

       

      Any ideas?