1 Reply Latest reply on Apr 10, 2015 11:50 AM by Horia Chiorean

    Modeshape 4.2.0.Final and Wildfly 8.2.0.Final does not work

    Pawel W Newbie

      Hi

       

      I'm trying to use modeshape 4.2.0.Final with Wildfly 8.2.0.Final. Both of them theoretically should use jboss infinispan 6.0.2, but it looks like modeshape trying to use some class from older version of infinispan (from infinispan version 5.1.x). It trying to use org.infinispan.marshall.jboss.JBossExternalizerAdapter but this class is not present in infinispan 6.0.2 (but it was in 5.1.x version).

      If anyone had a similar problem?


      In wildfly console I get following error:

       

      17:24:30,611 ERROR [de.psi.pjf.docm.server.service.JcrDao] (EJB default - 4) Could not refresh session: javax.jcr.RepositoryException: Error while starting 'docm' repository: *UNEXPECTE
      D* ClassNotFoundException. This should not happen as Bucket class exists
              at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:653) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:617) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:144) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              at de.psi.pjf.docm.server.service.JcrDao.getSession(JcrDao.java:85) [classes:]
              at de.psi.pjf.docm.server.service.JcrDao.refreshSession(JcrDao.java:333) [classes:]
              at de.psi.pjf.docm.server.service.JcrDao.handleException(JcrDao.java:320) [classes:]
              at de.psi.pjf.docm.server.service.JcrDao.getAll(JcrDao.java:102) [classes:]
              at de.psi.pjf.docm.server.facade.DocmBusinessFacade.getAll(DocmBusinessFacade.java:75) [classes:]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_60]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_60]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_60]
              at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_60]
              at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
              at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.jpa.interceptor.SFSBInvocationInterceptor.processInvocation(SFSBInvocationInterceptor.java:57)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:127) [wildfly-ejb3-8.2.0.Final
      .jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)
              at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) [weld-core-impl-2.2.6.Final.jar:2014-10-03
      10:05]
              at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
              at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:66) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.
      Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:273) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:340) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.
      Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.2.0.Final.jar:8.2.
      0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
              at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)
              at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)
              at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)
              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
              at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)
              at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.invokeMethod(MethodInvocationMessageHandler.java:330) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.access$100(MethodInvocationMessageHandler.java:70) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler$1.run(MethodInvocationMessageHandler.java:203) [wildfly-ejb3-8.2.0.Final.jar:8.2.0.Final]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_60]
              at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_60]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
              at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
              at org.jboss.threads.JBossThread.run(JBossThread.java:122)
      Caused by: org.infinispan.persistence.spi.PersistenceException: *UNEXPECTED* ClassNotFoundException. This should not happen as Bucket class exists
              at org.infinispan.persistence.jdbc.JdbcUtil.unmarshall(JdbcUtil.java:73) [infinispan-cachestore-jdbc-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.persistence.jdbc.stringbased.JdbcStringBasedStore.load(JdbcStringBasedStore.java:196) [infinispan-cachestore-jdbc-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.persistence.manager.PersistenceManagerImpl.loadFromAllStores(PersistenceManagerImpl.java:430) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.CacheLoaderInterceptor.loadIfNeeded(CacheLoaderInterceptor.java:263) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.CacheLoaderInterceptor.loadIfNeededAndUpdateStats(CacheLoaderInterceptor.java:335) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.CacheLoaderInterceptor.visitGetKeyValueCommand(CacheLoaderInterceptor.java:105) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.EntryWrappingInterceptor.visitGetKeyValueCommand(EntryWrappingInterceptor.java:116) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.locking.PessimisticLockingInterceptor.visitGetKeyValueCommand(PessimisticLockingInterceptor.java:72) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
      
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:112) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:74) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.TxInterceptor.enlistReadAndInvokeNext(TxInterceptor.java:226) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.TxInterceptor.visitGetKeyValueCommand(TxInterceptor.java:221) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.CacheMgmtInterceptor.visitGetKeyValueCommand(CacheMgmtInterceptor.java:92) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:98) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:110) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:73) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:74) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:40) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:333) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.CacheImpl.get(CacheImpl.java:377) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.CacheImpl.get(CacheImpl.java:369) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.AbstractDelegatingCache.get(AbstractDelegatingCache.java:271) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.schematic.internal.CacheSchematicDb.get(CacheSchematicDb.java:72) [modeshape-schematic-4.2.0.Final.jar:4.2.0.Final]
              at org.modeshape.jcr.cache.document.LocalDocumentStore.get(LocalDocumentStore.java:71) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              at org.modeshape.jcr.cache.RepositoryCache.<init>(RepositoryCache.java:168) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:1139) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              at org.modeshape.jcr.JcrRepository$RunningState.<init>(JcrRepository.java:978) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              at org.modeshape.jcr.JcrRepository.doStart(JcrRepository.java:387) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              at org.modeshape.jcr.JcrRepository.login(JcrRepository.java:651) [modeshape-jcr-4.2.0.Final.jar:4.2.0.Final]
              ... 85 more
      Caused by: java.lang.ClassNotFoundException: org.infinispan.marshall.jboss.JBossExternalizerAdapter from [Module "org.infinispan:main" from local module loader @17616cae (finder: local
      module finder @7d261f7f (roots: C:\app\jboss\wildfly-8.2.0.Final_New\modules,C:\app\jboss\wildfly-8.2.0.Final_New\modules\system\layers\base))]
              at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
              at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
              at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
              at java.lang.Class.forName0(Native Method) [rt.jar:1.7.0_60]
              at java.lang.Class.forName(Class.java:270) [rt.jar:1.7.0_60]
              at org.jboss.marshalling.ModularClassResolver.resolveClass(ModularClassResolver.java:102)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:949)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1256)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:1012)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1256)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:276)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
              at org.infinispan.container.entries.ImmortalCacheValue$Externalizer.readObject(ImmortalCacheValue.java:130) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.container.entries.ImmortalCacheValue$Externalizer.readObject(ImmortalCacheValue.java:122) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.marshall.core.ExternalizerTable$ExternalizerAdapter.readObject(ExternalizerTable.java:389) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.marshall.core.ExternalizerTable.readObject(ExternalizerTable.java:205) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.marshall.core.JBossMarshaller$ExternalizerTableProxy.readObject(JBossMarshaller.java:152) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:355)
              at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
              at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
              at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectFromObjectStream(AbstractJBossMarshaller.java:136) [infinispan-commons-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.marshall.core.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:101) [infinispan-core-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commons.marshall.AbstractMarshaller.objectFromInputStream(AbstractMarshaller.java:104) [infinispan-commons-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.commons.marshall.AbstractDelegatingMarshaller.objectFromInputStream(AbstractDelegatingMarshaller.java:60) [infinispan-commons-6.0.2.Final.jar:6.0.2.Final]
              at org.infinispan.persistence.jdbc.JdbcUtil.unmarshall(JdbcUtil.java:67) [infinispan-cachestore-jdbc-6.0.2.Final.jar:6.0.2.Final]
              ... 124 more
      

       

      My jboss configuration (standalone-modeshape.xml) is as follows:

       

                <subsystem xmlns="urn:jboss:domain:infinispan:2.0">
                  ...
                  <cache-container name="modeshape" default-cache="sample" module="org.modeshape">
                      <local-cache name="sample">
                          <locking isolation="READ_COMMITTED"/>
                          <transaction mode="NON_XA"/>
                          <file-store passivation="false" purge="false" path="modeshape/store/sample"/>
                      </local-cache>
                      <local-cache name="artifacts">
                          <locking isolation="READ_COMMITTED"/>
                          <transaction mode="NON_XA"/>
                          <file-store passivation="false" purge="false" path="modeshape/store/artifacts"/>
                      </local-cache>
                      <local-cache name="DOCM">
                          <transaction mode="FULL_XA"/>
                          <string-keyed-jdbc-store passivation="false" purge="false" datasource="java:jboss/datasources/OracleDSXA">
                              <string-keyed-table prefix="JCR">
                                  <id-column name="ID" type="VARCHAR2(200)"/>
                                  <data-column name="PAYLOAD" type="BLOB"/>
                                  <timestamp-column name="MARK" type="NUMBER"/>
                              </string-keyed-table>
                          </string-keyed-jdbc-store>
                      </local-cache>
                  </cache-container>
              </subsystem>
              <subsystem xmlns="urn:jboss:domain:modeshape:2.0">
                  ...
                  <repository name="docm" cache-name="DOCM" cache-container="modeshape">
                      <node-types>
                          <node-type>
                              psi-node-types.cnd
                          </node-type>
                      </node-types>
                      <workspaces>
                          <workspace name="default">
                              <initial-content>
                                  psi-initial-content-default.xml
                              </initial-content>
                          </workspace>
                      </workspaces>
                      <text-extractors>
                          <text-extractor name="tika-extractor" classname="tika" module="org.modeshape.extractor.tika"/>
                      </text-extractors>
                  </repository>
                  <webapp name="modeshape-rest.war"/>
                  <webapp name="modeshape-webdav.war"/>
                  <webapp name="modeshape-cmis.war"/>
                  <webapp name="modeshape-explorer.war"/>
              </subsystem>
      
        • 1. Re: Modeshape 4.2.0.Final and Wildfly 8.2.0.Final does not work
          Horia Chiorean Master

          You should check your application's packaging/classpath and/or the modules which are installed in your Wildfly instance. JBossExternalizerAdapter is packaged in the infinispan-commons-6.0.2.Final.jar (in the infinispan commons main module). Most likely there's either another (older) infinispan jar somewhere in the classpath. We've done extensive testing with the ModeShape kit installed in a vanilla Wildfly 8.2.0 installation and there shouldn't be any dependency issues.