users@glassfish.java.net

Re: [Glassfish embedded] Problem with JPA2 entities in jar in a war

From: <glassfish_at_javadesktop.org>
Date: Mon, 06 Sep 2010 05:09:12 PDT

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