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 <[email protected]> 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
