2 Replies Latest reply on Jun 18, 2012 12:57 PM by Jonathan Fields

    Help configuring 3.0 Alpha5 and BDBJE cache loader in AS 7

    Jonathan Fields Novice

      I'm trying to configure 3.0 Alpha 5 to work in AS 7.1 with a BDBJE cache loader. I'm almost there, but not quite, and it seems I am running into class loading issues. Everything works fine when the default file-store is used.

       

      I followed the steps to configure BDBJE in AS 7.1 found here https://community.jboss.org/message/717753, namely:

       

      • I created a BDBJE cache loader module in modules/org/infinispan/cachestore/bdbje/main (module.xml attached).
      • I added a dependency upon that to modules/org/infinispan/main/module.xml (module.xml attached).
      • I  changed the sample cache config in standalone/configuration/standalone-modeshape.xml to use the BDBJE store instead of the file-store (standalone-modeshape.xml attached):
        • <store class="org.infinispan.loaders.bdbje.BdbjeCacheStore" shared="false" preload="false" passivation="false" fetch-state="true" purge="false" singleton="false">

       

      With this configuration, when I try to access the repo, say using the rest service, I am seeing the exception below. It seems that I must be missing someing in a module.xml file somehwere so that the BDBJE cache loader can see the Modeshape class, but I am completely new to the AS 7 modules and cannot figure it out. Any hints?

       

      Caused by: java.lang.ClassNotFoundException: org.infinispan.schematic.internal.SchematicEntryLiteral from [Module "org.jboss.as.clustering.infinispan:main" from local module loader @423e5d1 (roots: /home/jon/jboss-as-7.1.1.Final/modules)]

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

          at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

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

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

          at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

          at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

          at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_27]

          at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_27]

          at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:135)

          at org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:116)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:943)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1204)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

          at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)

          at org.infinispan.container.entries.ImmortalCacheEntry$Externalizer.readObject(ImmortalCacheEntry.java:158) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.infinispan.container.entries.ImmortalCacheEntry$Externalizer.readObject(ImmortalCacheEntry.java:148) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.infinispan.marshall.jboss.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:401) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.infinispan.marshall.jboss.ExternalizerTable.readObject(ExternalizerTable.java:290) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:351)

          at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

          at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)

          at org.infinispan.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:148) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.infinispan.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:110) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.infinispan.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:90) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.infinispan.marshall.AbstractDelegatingMarshaller.objectFromByteBuffer(AbstractDelegatingMarshaller.java:79) [infinispan-core-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.infinispan.loaders.bdbje.InternalCacheEntryBinding.entryToObject(InternalCacheEntryBinding.java:42) [infinispan-cachestore-bdbje-5.1.2.FINAL.jar:5.1.2.FINAL]

          at org.infinispan.loaders.bdbje.InternalCacheEntryBinding.entryToObject(InternalCacheEntryBinding.java:33) [infinispan-cachestore-bdbje-5.1.2.FINAL.jar:5.1.2.FINAL]

          at com.sleepycat.collections.DataView.makeValue(DataView.java:596) [je-4.0.92.jar:]

          at com.sleepycat.collections.DataCursor.getCurrentValue(DataCursor.java:350) [je-4.0.92.jar:]

          at com.sleepycat.collections.StoredContainer.getValue(StoredContainer.java:304) [je-4.0.92.jar:]

          at com.sleepycat.collections.StoredMap.get(StoredMap.java:241) [je-4.0.92.jar:]

          at org.infinispan.loaders.bdbje.BdbjeCacheStore.load(BdbjeCacheStore.java:405) [infinispan-cachestore-bdbje-5.1.2.FINAL.jar:5.1.2.FINAL]