The error is somewhat misleading. the XML file itself must not be in the classpath; the part of the message "META-INF / persistence.xml" means that the directory containing META-INF / persistence.xml should be.
If your hard drive had the following
C: \ LIES \ JPA \ META-INF \ persistence.xml
then your class path should include this
CLASSPATH=c:\libs\JPA
If META-INF \ Persistence.xml was contained in foo.jar, assuming META-INF / Persistence.xml is located in the root jar folder, your class path should have this
CLASSPATH=C:\<path to jar>\foo.jar
This may seem obvious or redundant, but my goal is to make sure that we compare apples to apples, and CLASSPATH, along with loading classes, can be a crawler.
So can you post your CLASSPATH?
Kelly S. French Aug. 14 '09 at 20:08 2009-08-14 20:08
source share