users@glassfish.java.net

JPA clasess access from the EJB

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 Apr 2010 14:07:05 PDT

Dear all,

I've got the problem with deploying my project under AS:

App. Server: Glassgish v3
IDE: Eclipse 3.5

I've three projects:
JPA project
EJB project, it's designed to use the classes from JPA project
EAR project which us used for deployment to the app.server.

The problem is that after EAR deployment it seems that EJB bean is not able to get access to the JPA classes, e.g. bean can not create new entity and store it to the database, i've got javax.persistence.PersistenceException: No Persistence provider for EntityManager .

Could anybody explain is the concept of creating JPA + EJB project is correct, or should i create just EJB project with all code and entity classes ?

Thanks a lot in advance for help !

Sandres.
[Message sent by forum member 'sandres']

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