Hello again! I finally found a solution for my problem and I would like to share it with you.There is a maven plugin that scans the dependencies for JPA Entities. These informations can be used to generate the <class> tags in the persistence.xml.
1. Place your persistence.xml in src/main/resources/META-INF. It should look like this: 2. Add the following lines to the pom files of your war project: Link to maven-plugin: http://ljnelson.github.io/jpa-maven-plugin/ This solution should work with any available JEE Container. -- View this message in context: http://openejb.979440.n4.nabble.com/Problem-with-Entities-in-jars-tp4663695p4663841.html Sent from the OpenEJB User mailing list archive at Nabble.com.
