-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
7.1.1.Final
-
-
-
Low
I tried to port our .war application to JBoss 7.1.1 Final and tried to use Infinispan as the Hibernate second-level cache (via hibernate.cfg.xml configuration). Finally, I found it did not work, as the following dependency is missing that I added manually (see >>> below, especially note services="import"):
-------------------------------------------------------------------------------
C:\jboss-as-7.1.1.Final\modules\org\jboss\as\clustering\infinispan\main\module.xml <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> <module name="net.jcip"/> >>>>>>>>>>>>>>>>>> <module name="org.hibernate" services="import"/> <module name="org.infinispan"/> <module name="org.infinispan.cachestore.jdbc"/>
-------------------------------------------------------------------------------
The reason is that org.hibernate module has services (hibernate-infinispan-4.0.1.Final.jar/META-INF/services/org.infinispan.commands.module.ModuleCommandExtensions) to be loaded by Infinispan, thus needs to be loaded BEFORE Infinispan starts.
NOTE: I have not completed our port yet as found other problems after that, but pretty sure this dependency should be inplace.
- duplicates
-
AS7-4007 missing Infinispan dependency for clustered JPA second level cache
-
- Resolved
-