On Dec 22, 2007, at 5:13 PM, Alexander Saint Croix wrote:
Howdy. The 3.0 persistence spec, section 6.2.1.6, indicates that <jar-file> elements in the persistence.xml should be relative to the root of the persistence unit. However, I've found that it's digging from the root of the tomcat installation. I think the PersistenceUnitInfoImpl.java file is the location of the bug. For instance, if I put this in my persistence.xml file: <jar-file>../../lib/first.jar</jar-file> <jar-file>../../lib/second.jar</jar-file> It looks for the jars in /Users/alex/dev/apache-tomcat-6.0.14/bin/../../lib/first.jar and /Users/alex/dev/apache-tomcat-6.0.14/bin/../../lib/second.jar
Fixed! Thanks for reporting it. -David