[jboss-jira] [JBoss JIRA] (AS7-5281) JBoss loading wrong Hibernate version when using Persistence unit in WAR file
Kuthair Habboush (JIRA)
jira-events at lists.jboss.org
Wed Aug 1 16:43:06 EDT 2012
[ https://issues.jboss.org/browse/AS7-5281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709280#comment-12709280 ]
Kuthair Habboush edited comment on AS7-5281 at 8/1/12 4:41 PM:
---------------------------------------------------------------
Hi Scott,
Thanks for your reply. I downloaded "Last Successful Artifact" (jboss-as-7.x.zip) which extracted to folder: jboss-as-7.2.0.Alpha1-SNAPSHOT
However, I'm seeing the same problem. When persistence.xml is in place, I get the following output:
[0m16:22:39,577 INFO [stdout] (http-/127.0.0.1:8080-3) org.hibernate: 4.1.4.Final
[0m16:22:39,578 INFO [stdout] (http-/127.0.0.1:8080-3) org.hibernate.ejb: 4.1.4.Final
That should be 4.1.5.SP1.
Did I download the right zip?
Thanks again,
-Kuthair
PS.. I noticed the persistence.xml file I gave you (in zip) had been auto-formatted by my xml tool which transposed name & value for the dialect. This won't deploy as is. I'm attaching another persistence.xml file.
was (Author: sshtac):
Hi Scott,
Thanks for your reply. I downloaded "Last Successful Artifact" (jboss-as-7.x.zip) which extracted to folder: jboss-as-7.2.0.Alpha1-SNAPSHOT
However, I'm seeing the same problem. When persistence.xml is in place, I get the following output:
[0m16:22:39,577 INFO [stdout] (http-/127.0.0.1:8080-3) org.hibernate: 4.1.4.Final
[0m16:22:39,578 INFO [stdout] (http-/127.0.0.1:8080-3) org.hibernate.ejb: 4.1.4.Final
That should be 4.1.5.SP1.
Did I download the right zip?
Thanks again,
-Kuthair
> JBoss loading wrong Hibernate version when using Persistence unit in WAR file
> -----------------------------------------------------------------------------
>
> 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