]
Zbyněk Roubalík resolved AS7-4238.
----------------------------------
Resolution: Duplicate Issue
This issue duplicates linked jira (AS7-4007)
Missing module dependency: org.jboss.as.clustering.infinispan should
depend on org.hibernate
--------------------------------------------------------------------------------------------
Key: AS7-4238
URL:
https://issues.jboss.org/browse/AS7-4238
Project: Application Server 7
Issue Type: Bug
Components: Clustering
Affects Versions: 7.1.1.Final
Environment: Windows 7
Reporter: Vitaliy Sapounov
Assignee: Paul Ferraro
Labels: 2lc, hibernate, infinispan
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"):
-------------------------------------------------------------------------------
{noformat}
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"/>
{noformat}
-------------------------------------------------------------------------------
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: