6 Replies Latest reply on Jan 22, 2015 11:36 AM by Scott Marlow

    Wildfly with Hibernate and Infinispan

    Rakesh Panati Newbie



      I'm trying to port my spring based application which was previously working with Hibernate4+EhCache+Spring4+Tomcat8 configuration to Hibernate4+Infinispan6+Spring4+WildFly8.


      Now in this context, I downloaded the new wildfly 8.2 and without any configuration changes to infinispan, I set the hibernate properties as below



      With this I get the below exception during deployment (WildFly standalone mode). Expecting to use the local-cache "entity".

      Caused by: java.lang.ClassCastException: org.jboss.as.clustering.infinispan.DefaultCacheContainer cannot be cast to org.infinispan.manager.EmbeddedCacheManager

      When I try to assign the "entity" local-cache itself a JNDI name and then point the hibernate cachemenager to this new JNDI, then I get the below error

      Caused by: java.lang.ClassCastException: org.jboss.as.clustering.infinispan.DefaultCacheContainer$DelegatingCache cannot be cast to org.infinispan.manager.EmbeddedCacheManager"}}

      I was unable to export org.infinispan itself as a wildfly module, with the hope that I could generate the EmbeddedCacheManager from it.

      I'm new to JBOSS/WildFly family. So need your help in configuring this system.