[
https://issues.jboss.org/browse/AS7-5474?page=com.atlassian.jira.plugin.s...
]
Adriano Verona commented on AS7-5474:
-------------------------------------
Hi
I checked it again (version 7.2.0 alpha 1 from Oct/16) but the new behavior (return an URL
pointing to a folder containing META-INF/persistence.xml instead of an empty one),IMHO, is
still not spec complaint. Based on the javadoc for the method I'd expect the complete
jar contents to be extracted (not only META-INF/persistence.xml).
Url returned by PersistenceUnitInfo#getPersistenceUnitRootUrl() point
to an empty folder
----------------------------------------------------------------------------------------
Key: AS7-5474
URL:
https://issues.jboss.org/browse/AS7-5474
Project: Application Server 7
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 7.2.0.Alpha1
Environment: $ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
Windows 7 x64
Reporter: Adriano Verona
Assignee: Scott Marlow
Fix For: 7.2.0.Alpha1
Attachments: vjpa_jboss_example.jar
When setting "jboss.as.jpa.vfs" property to false in persistence.xml
PersistenceUnitInfo#getPersistenceUnitRootUrl() returns an Url that points to an empty
folder (named "Contents"). The parent of this folder does holds the application
jar.
file:/D:/Java/jboss-as-7.2.0.Alpha1/standalone/tmp/vfs/temp9c270668d311f0c4/vjpa_jboss_example.jar-7ef91a4c66eeff18/contents/
Observed this at PersistenceProvider#createContainerEntityManagerFactory() method call.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira