persistence@glassfish.java.net

Re: Where is my persistence unit?

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 02 Dec 2008 16:12:18 -0800

Can you publish your persistence.xml and the structure of your ear file?

thanks,
-marina

Daniel Benítez wrote:
> Hi people,
>
> I have a problem with a wicked persistence unit. My Entreprise Application
> in Netbeans 6.1 have an EJB and a App Client. I defined a persistence unit
> to connect with a derby database in the EJB module. My problem is that I
> try
> to execute from my Entreprise Application it not run, but if I execute from
> the Application client, I have not problems with the persistence unit.
>
> Netbeans tell me that "Exception in thread "AWT-EventQueue-0"
> javax.persistence.PersistenceException: No Persistence provider for
> EntityManager named SenecaPU". (Persistence provider named SenecaPU
> exist!)
>
> I defined de persistence unit with transaction-type="RESOURCE_LOCAL"
> parameter, but if I change this parameter with "JTA" I have not way to run
> my program.
>
>
>
> Thank You every one.
>
> Daniel Benítez.
>
>
>