Uploaded image for project: 'Hibernate ORM'
  1. HHH-4161

persistence.xml <jar-file> not following JSR220 spec

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      JSR220 says <jar-file> is relative to the root of the persistence unit, which is the place containing the META-INF/persistence.xml

      This is not the case. Instead, it looks for the jar relative to the JVM working directory. (see JarVisitorFactory.java)

      So providing an absolute file path in <jar-file> works, but not a relative path because the root changes changes based on the situation and environment. E.g., the directory you run ant, when running tomcat, etc.

        Attachments

          Activity

            People

            • Votes:
              18 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2h 40m
                2h 40m