Using
properties.put(EJBContainer.MODULES, new File("target/classes"));
Embedded Glassfish only sees the classes and resources from your current project, not from your JPA project.
I don't know if Embedded Glassfish supports a classpath composed of multiple folders. For my JUnit tests, I build a WAR and deploy it to Embedded Glassfish.
HTH,
Harald
[Message sent by forum member 'hwellmann']
http://forums.java.net/jive/thread.jspa?messageID=481965