5 Replies Latest reply on Aug 31, 2012 6:37 AM by Chandra Dontula

    java.lang.NoClassDefFoundError: org/infinispan/manager/CacheContainer JBoss7

    Chandra Dontula Newbie

      Hi,

       

      I am using infinispan cache in JBoss application server 7.1.1.Final

       

      I have configured the cache in JBoss as below

                  <cache-container name="emmCrediting" aliases="ha-partition" default-cache="default" jndi-name="java:jboss/infinispan/emmCrediting">

                      <transport lock-timeout="60000"/>

                      <invalidation-cache name="androidDuration" mode="SYNC" start="EAGER">

                          <locking isolation="READ_COMMITTED"/>

                          <transaction mode="NON_XA"/>

                          <eviction strategy="LRU" max-entries="20000"/>

                          <expiration max-idle="100000"/>

                      </invalidation-cache>

                      <replicated-cache name="default" mode="SYNC" batching="true">

                          <locking isolation="REPEATABLE_READ"/>

                      </replicated-cache>

                  </cache-container>

              </subsystem>

       

      I have deployed my application and getting the Cache container from JNDI using default Initial Context

       

      (CacheContainer)new InitialContext().lookup("java:jboss/infinispan/emmCrediting");

       

      While looking up the chane manager from JNDI I am getting the following exception

      11:57:33,058 ERROR [org.jboss.ejb3.invocation] (Thread-1 (HornetQ-client-global-threads-12355216)) JBAS014134: EJB Invocation failed on component AndroidProcessMDB for method public abstract void javax.jms.MessageListener.onMessage(javax.jms.Message): javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/infinispan/manager/CacheContainer

       

      Can some one please let me know what is the problem in loading  the class as the jar anf infinispan module is already there