11 Replies Latest reply on Aug 16, 2011 6:46 PM by Scott Guilbeaux

    Two wars using second level cache

    Scott Guilbeaux Newbie

      I'm trying to deploy two webapps, both with infinispan configured as the hibernate second level cache, but on startup I recieve the following exception.

       

      Caused by: org.infinispan.config.ConfigurationException: Detected interceptor of type [org.hibernate.cache.infinispan.impl.ClassLoaderAwareCache$ClassLoaderAwareCommandInterceptor] being added to the interceptor chain more than once!

       

      The relevant configuration in both persistence.xml files is is this.

       

      <property name="hibernate.cache.region.factory_class"

                       value="org.hibernate.cache.infinispan.JndiInfinispanRegionFactory"/>

      <property name="hibernate.cache.infinispan.cachemanager"

                       value="java:jboss/infinispan/hibernate"/>

      <property name="hibernate.transaction.manager_lookup_class"

                       value="org.hibernate.transaction.JBossTransactionManagerLookup"/>

      <property name="hibernate.cache.use_second_level_cache" value="true"/>

      <property name="hibernate.cache.use_query_cache" value="true"/>

      <property name="hibernate.cache.use_minimal_puts" value="true"/>

       

      Any ideas?