Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5474

Url returned by PersistenceUnitInfo#getPersistenceUnitRootUrl() point to an empty folder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • EAP 6.1.0.Alpha (7.2.0.Final)
    • JPA / Hibernate
    • None
    • $ 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

      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.

              smarlow1@redhat.com Scott Marlow
              vagaus Adriano Verona (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: