0 Replies Latest reply on Jan 30, 2012 10:26 AM by Roman Krutyakov

    Jboss 7, Infinispan, OSGi problem

    Roman Krutyakov Newbie

      Im trying to use infinispan cache with TreeAPI in my osgi bundle. Cache is configured in jboss configuration (standalone.xml). Tree API deployed as Jboss module and added to osgi config.

      Got a problem - class loader cant find TreeCache interface and throws exception:

       

      [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011912: Cannot start bundle: experimental.caching.infinispan:1.0.0: org.osgi.framework.BundleException: Cannot start bundle: experimental.caching.infinispan:1.0.0
              at org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:328) [jbosgi-framework-core-1.1.0.jar:1.1.0]
              at org.jboss.osgi.framework.internal.HostBundleState.startInternal(HostBundleState.java:223) [jbosgi-framework-core-1.1.0.jar:1.1.0]
              at org.jboss.osgi.framework.internal.AbstractBundleState.start(AbstractBundleState.java:494) [jbosgi-framework-core-1.1.0.jar:1.1.0]
              at org.jboss.as.osgi.deployment.BundleStartTracker$1.processService(BundleStartTracker.java:144) [jboss-as-osgi-service-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
              at org.jboss.as.osgi.deployment.BundleStartTracker$1.transition(BundleStartTracker.java:119) [jboss-as-osgi-service-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
              at org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1429) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
              at org.jboss.msc.service.ServiceControllerImpl.access$2600(ServiceControllerImpl.java:49) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
              at org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:1952) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0_b147-icedtea]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0_b147-icedtea]
              at java.lang.Thread.run(Thread.java:722) [:1.7.0_b147-icedtea]
      Caused by: java.lang.NoClassDefFoundError: org/infinispan/tree/TreeCache
              at experimental.caching.infinispan.Activator.start(Activator.java:70)
              at org.jboss.osgi.framework.internal.HostBundleState.transitionToActive(HostBundleState.java:300) [jbosgi-framework-core-1.1.0.jar:1.1.0]
              ... 10 more
      Caused by: java.lang.ClassNotFoundException: org.infinispan.tree.TreeCache from [Module "deployment.experimental.caching.infinispan:1.0.0" from Service Module Loader]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:450) [jboss-modules.jar:1.1.0.CR8]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398) [jboss-modules.jar:1.1.0.CR8]
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120) [jboss-modules.jar:1.1.0.CR8]
              ... 12 more
      
      

       

      Any ideas?

       

      Platform: Jboss 7.1 nightly build, java 1.7