First of all thank you very much.

This is my persistence.xml

<?xml version="1.0" encoding="UTF-8" ?>
<persistence 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"; version="1.0">

<persistence-unit name="jocual">
<provider>org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider</provider>
<properties>
<property name="datanucleus.NontransactionalRead" value="true"/>
<property name="datanucleus.NontransactionalWrite" value="true"/>
<property name="datanucleus.ConnectionURL" value="appengine"/>
</properties>
</persistence-unit>

</persistence>

And my proyect incluyed the datanucleus.jpa-1.1.5.jar , do you know that i need other jar version? , where can i obtain it?




El 31/05/2011 10:04, Erwin Streur escribió:
What is the provider you have defined in the presistence.xml? Is it
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider?

The missing class, ProviderUtil, is from JPA 2.0. Since Google
provides JPA 1.0, it is not so surprising that the class can not be
found.

On May 28, 8:10 pm, Jorge Cuerdo Álvarez<joc...@gmail.com>  wrote:
Hello, i have a problem With JPA and Google Engine, i have one trial
web applicationhttp://jocual.appspot.com/index.jspand it works good
with JDO but when i use JPA it report the next error:

Caused by: java.lang.NoClassDefFoundError: javax/persistence/spi/
ProviderUtil
         at
com.google.appengine.runtime.Request.process-2e0607ad3b5a947f(Request.java)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:132)
         at javax.persistence.Persistence.createFactory(Persistence.java:160)
         at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
112)
         at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:
66)
         at com.presentacion.EMF.<clinit>(EMF.java:6)
         at
com.presentacion.PersistenceActionJPA.execute(PersistenceActionJPA.java:
38)

And i have a persistence.xml and all the anotations and all the jar´s
incluyed in the proyect, i dont know what is happen?

--
You received this message because you are subscribed to the Google Groups "Google 
App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to