[jboss-jira] [JBoss JIRA] (AS7-4238) Missing module dependency: org.jboss.as.clustering.infinispan should depend on org.hibernate

Vitaliy Sapounov (JIRA) jira-events at lists.jboss.org
Tue Mar 20 17:04:47 EDT 2012


Vitaliy Sapounov created AS7-4238:
-------------------------------------

             Summary: 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


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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list