users@glassfish.java.net

Re: JPA clasess access from the EJB

From: Ludovic Champenois <ludovic.champenois_at_oracle.com>
Date: Mon, 26 Apr 2010 17:15:40 -0700

  On 4/26/10 2:07 PM, glassfish_at_javadesktop.org wrote:
> 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 !
>
>
This was bug https://glassfish.dev.java.net/issues/show_bug.cgi?id=11766
<https://glassfish.dev.java.net/issues/show_bug.cgi?id=11766>
which is now fixed in recent GlassFish 3.0.1 builds (
http://download.java.net/glassfish/v3.0.1/)
You would need to install a newer GF and register it to Eclipse (both
runtime and server).

Ludo
<https://glassfish.dev.java.net/issues/show_bug.cgi?id=11766>
> Sandres.
> [Message sent by forum member 'sandres']
>
> http://forums.java.net/jive/thread.jspa?messageID=399130
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>