1 Reply Latest reply on Jul 7, 2016 2:40 AM by Wolf-Dieter Fink

    JDG 6.6 in EAP 6.3

    Rick Vincent Newbie



      I have installed the JDG 6.6 datagrid modules over Jboss EAP 6.3.  Our libraries are used by many JEE applications so they are deployed as modules.  I've installed the following caches in standalone-full.xml...


              <subsystem xmlns="urn:jboss:domain:infinispan:1.5">

                 <cache-container name="udp-cache-container" default-cache="MemoryLockingCache">


             <distributed-cache name="the-default-cache" l1-lifespan="30000" owners="2" mode="SYNC" />

             <distributed-cache name="MemoryLockingCache" l1-lifespan="30000" owners="2" mode="SYNC" />

             <distributed-cache name="Tables" l1-lifespan="30000" owners="2" mode="SYNC" />



      When trying to invoke a simple                 cacheManager = new DefaultCacheManager();


      with the following dependencies in my module.xml



          <module name="javax.api"/>

        <module name="javaee.api"/>

        <module name="javax.jms.api"/>

        <module name="javax.transaction.api"/>

        <module name="javax.cache.api" slot="jdg-6.6" services="export"/>

        <module name="org.infinispan" slot="jdg-6.6" services="export"/>

        <module name="org.jgroups" slot="jdg-6.6" services="export"/>

        <module name="org.infinispan.commons" slot="jdg-6.6" services="export"/>

        <module name="org.infinispan.lucene" slot="jdg-6.6" services="export"/>



      I receive the following error:


      13:50:18,099 ERROR [org.jboss.as.ejb3] (Thread-6 (HornetQ-client-global-threads-1875088273)) javax.ejb.EJBTransactionRolledbackException: TransactedMD

      B Exception : java.lang.RuntimeException: java.util.ServiceConfigurationError: org.infinispan.lifecycle.ModuleLifecycle: Provider org.infinispan.lucen

      e.LifecycleCallbacks not found

      13:50:18,102 ERROR [org.jboss.as.ejb3.invocation] (Thread-6 (HornetQ-client-global-threads-1875088273)) JBAS014134: EJB Invocation failed on component

      OFSTransactedMDB for method public abstract void javax.jms.MessageListener.onMessage(javax.jms.Message): javax.ejb.EJBTransactionRolledbackException:

      TransactedMDB Exception : java.lang.RuntimeException: java.util.ServiceConfigurationError: org.infinispan.lifecycle.ModuleLifecycle: Provider org.inf

      inispan.lucene.LifecycleCallbacks not found

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:162) [jboss-as-ejb3-7.4.0.Final-redhat-19.jar:7.4.0.Final-redh



      Even with the lucene module referenced, where org.infinispan.lucene.LifecycleCallbacks exists, it does not work.  Nor does it work with all of the jdg installed modules referenced.  I've also tried installing inifispan's 7.2 librarys and that doesn't work either but with different errors.


      What minimal set of dependencies do I need to get DefaultCacheManager() to correctly construct.  Currently, I have no jars referenced inside my ear file.  What minimal set of jars must be included if I cannot use the module.xml approach?  The helloworld quickstart includes every jar under the sun which is unacceptable (I've tried including all the jars in the EAR file anyway, but again failure for differing reasons)