Rich,
Do you have any JPA provider implementation jars in your classpath?
thanks,
-marina
glassfish_at_javadesktop.org wrote:
> Hello,
>
> I hope someone can help with a really frustrating problem that I have. I have created a class that retrieves some information from a mySQL database. However, I keep getting the "No persistence provider for Entity manager" error and I have no idea how to fix it. Persistence.xml looks as follows;
>
> <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="richwebbPU" transaction-type="RESOURCE_LOCAL">
> <jta-data-source>depotDB</jta-data-source>
> <class>org.rich.entities.Products</class>
> <exclude-unlisted-classes>true</exclude-unlisted-classes>
> <properties/>
> </persistence-unit>
> </persistence>
>
> Any help would be much appreciated.
>
> Cheers,
> Rich
> [Message sent by forum member 'rwwebb' (rwwebb)]
>
> http://forums.java.net/jive/thread.jspa?messageID=350758
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>