users@glassfish.java.net

No Persistence provider for EntityManager!!!!

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Jun 2009 11:13:14 PDT

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