persistence@glassfish.java.net

Re: No Persistence provider for EntityManager

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Fri, 16 Jan 2009 10:09:34 -0800

May be you have another one in classpath with the same PU name?

Regards,
-marina

Amorous wrote:
> Thanks for your reply...here is what I have in persistence.xml file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> <persistence-unit name="myapp-ejbPU" transaction-type="JTA">
> <jta-data-source>mydatasource</jta-data-source>
> <properties/>
> </persistence-unit>
> </persistence>
>