persistence@glassfish.java.net

Re: No Persistence provider for EntityManager

From: Mitesh Meswani <Mitesh.Meswani_at_Sun.COM>
Date: Fri, 16 Jan 2009 12:09:35 -0800

There might be a nest exception that would point to why creation of the
emf failed.

Amorous wrote:
> Guys,
>
> Environment Details
>
> Netbeans 6.5
> Glassfish V2 ur2
> Toplink
> Oracle thin JDBC driver
> JAVA EE application
>
> I am getting the following error:
>
> root cause
>
> javax.persistence.PersistenceException: No Persistence provider for
> EntityManager named datamartAdmin-ejbPU: The following providers:
> oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider
> oracle.toplink.essentials.PersistenceProvider
> Returned null to createEntityManagerFactory.
>
> What am I missing...please suggest...
>
> -Amor
>