We're updating the issue view to help you get more done. 

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

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.

Environment

regression: 3.3.2.GA, 3.4.0.CR2

Status

Assignee

Steve Ebersole

Reporter

Jeff Ferber

Labels

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

4.3.5
5.0.2
4.3.8

Priority

Major