users@glassfish.java.net

Re: JPA/Hibernate not working with Glassfish :(

From: <glassfish_at_javadesktop.org>
Date: Wed, 13 Aug 2008 12:38:14 PDT

Hello marina,

Thanks for the answer.

I did try this two ways. 1 all in one war. 2 I made an ejb jar (by netbeans project) and put the model and bean class/interface in it (with same code as my original post) and I included this jar in my actual (war) project as a library.
Both ways failed.

In test 2, netbeans generated the ejb project jar as follows:

myTest-ejb.jar
- META-INF/persistence.xml
- META-INF/MANIFEST.MF
- com/test/service/jpa/Book.class
- com/test/service/jpa/BookBean.class
- com/test/service/jpa/BookRemote.class


Could you give me a pointer on how to do this with glassfish?

Thanks
[Message sent by forum member 'marlor' (marlor)]

http://forums.java.net/jive/thread.jspa?messageID=293138