Note that there are some explanatory texts on larger screens.

plurals
  1. POjavax.persistence.PersistenceException: No Persistence provider for EntityManager named DogovoraPool
    primarykey
    data
    text
    <p>I try to make GWT application with JPA on Eclipse. But I get this error: </p> <pre><code>javax.persistence.PersistenceException: No Persistence provider for EntityManager named DogovoraPool </code></pre> <p>on executing this command:</p> <pre><code>EntityManagerFactory emf = Persistence.createEntityManagerFactory("DogovoraPool"); </code></pre> <p>I put my persistence.xml all over the place: </p> <ul> <li>workspace\gwttest\src\META-INF\persistence.xml;</li> <li>workspace\gwttest\war\WEB-INF\classes\META-INF\persistence.xml;</li> <li>workspace\gwttest\war\WEB-INF\lib\persistence.xml.</li> </ul> <p>But it doesn't help :(</p> <p>persistence.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;persistence version="2.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_2_0.xsd"&gt; &lt;persistence-unit name="DogovoraPool" transaction-type="RESOURCE_LOCAL"&gt; &lt;provider&gt;org.eclipse.persistence.jpa.PersistenceProvider&lt;/provider&gt; &lt;class&gt;com.val.gwttest.server.entity.Pravform&lt;/class&gt; &lt;properties&gt; &lt;property name="javax.persistence.jdbc.password" value="xxx" /&gt; &lt;property name="javax.persistence.jdbc.user" value="root" /&gt; &lt;property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver" /&gt; &lt;property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost:3306/dogovora" /&gt; &lt;property name="eclipselink.logging.level" value="FINE" /&gt; &lt;/properties&gt; &lt;/persistence-unit&gt; &lt;/persistence&gt; </code></pre> <p>Please, advice me, how to fix it.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload