[jboss-jira] [JBoss JIRA] (AS7-5281) JBoss uses static Hibernate module instead of Hibernate jars included in deployment

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Thu Aug 2 21:13:06 EDT 2012


    [ https://issues.jboss.org/browse/AS7-5281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709610#comment-12709610 ] 

Stuart Douglas edited comment on AS7-5281 at 8/2/12 9:11 PM:
-------------------------------------------------------------

This is the expected behaviour. 

Depending on what you are trying to do there are a few solutions. Iy you simply want to use hibernate with no container integrations at all you can add the following jboss-deployment-structure.xml

{code}
<jboss-deployment-structure>
  <deployment>
    <exclude-subsystems>
      <subsystem name="jpa" />
    </exclude-subsystems>
  </deployment>
</jboss-deployment-structure>
{code}


                
      was (Author: swd847):
    This is the expected behaviour. 

Depending on what you are trying to do there are a few solutions. Iy you simply want to use hibernate with no container integrations at all you can add the following jboss-deployment-structure.xml

{code}
<jboss-deployment-structure>
  <deployment>
    <exclude-subsystems>
      <subsystem name="resteasy" />
    </exclude-subsystems>
  </deployment>
</jboss-deployment-structure>
{code}


                  
> JBoss uses static Hibernate module instead of Hibernate jars included in deployment
> -----------------------------------------------------------------------------------
>
>                 Key: AS7-5281
>                 URL: https://issues.jboss.org/browse/AS7-5281
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Class Loading, JPA / Hibernate
>    Affects Versions: 7.1.1.Final
>         Environment: JBoss 7.1.1.Final & Hibernate 4.1.5.SP1 on Mac OSX 10.7/10.8
> SQL Server 2008 on Windows 7 virtual
>            Reporter: Kuthair Habboush
>            Assignee: Scott Marlow
>              Labels: classloader, hibernate, jboss, persistence.xml
>         Attachments: hibernate-test.zip, persistence.xml
>
>
> JBoss is loading Hibernate 4.0.1.Final (ships with) instead of the version specified in my Maven POM file and embedded in WAR archive, version: 4.1.5.SP1.
> This ONLY occurs when I have a Persistence Unit setup in my WAR file in directory: resources/META-INF.
> If I rename persistence.xml to persistence.xml.old, JBoss loads the correct version: Hibernate 4.1.5.SP1.
> I have a sample project.

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