Hello, I got the same error after copying code from another GAEJ project which I had previously developed. The error is causing by a missing persistence.xml file, in my case, or I suppose it could be caused by mis-naming or a missing persistence-unit declaration in the persistence.xml.
The full documentation I used previously and need to review is here, http://code.google.com/appengine/docs/java/datastore/jpa/overview.html, as I'm now getting "No meta data" errors for my data objects. Since I've used JPA with no problems in other projects, I don't anticipate any now, once I've worked through the initial setup and configuration. Cheers! On Jan 27, 11:35 am, Juan Manuel Amorós <120...@gmail.com> wrote: > Hi! I'm having problems running a Google App Engine app (GAE/J) trying > to integrate with JPA but I can't make it work. I followed the simple > steps of google official tutorial (http://code.google.com/appengine/ > docs/java/datastore/jpa/overview.html). I setted up the > persistence.xml file in the right place, downloaded the JAR from the > SDK and added to my project as external JARs (using Eclipse SDK). I'm > currently not using Maven so i'm doing it manually. > > When I run the GAE application the following WARNINGs, ERRORs and > Exceptions appear on my Console: > > --------------------------------------------------------------------------- > --------------------------------------------------------------------------- > --------------------------- > Jan 27, 2011 3:47:11 PM com.google.apphosting.utils.jetty.JettyLogger > info > INFO: Logging to JettyLogger(null) via > com.google.apphosting.utils.jetty.JettyLogger > Jan 27, 2011 3:47:11 PM > com.google.apphosting.utils.config.AppEngineWebXmlReader > readAppEngineWebXml > INFO: Successfully processed /home/xxx/project/war/WEB-INF/ > appengine-web.xml > Jan 27, 2011 3:47:11 PM > com.google.apphosting.utils.config.AbstractConfigXmlReader > readConfigXml > INFO: Successfully processed /home/xxx/project/war/WEB-INF/ > web.xml > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.natures" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.builders" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.markers" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.markers" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > [etc...] > WARNING: Extension Point > "org.eclipse.core.runtime.contentTypes" not registered, but plugin > "org.eclipse.jdt.core" defined in file:/home/xxx/project/war/WEB-INF/ > lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point > "org.eclipse.core.runtime.preferences" not registered, but plugin > "org.eclipse.jdt.core" defined in file:/home/xxx/project/war/WEB-INF/ > lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point > "org.eclipse.core.runtime.preferences" not registered, but plugin > "org.eclipse.jdt.core" defined in file:/home/xxx/project/war/WEB-INF/ > lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints > SEVERE: Bundle "org.eclipse.jdt.core" requires > "org.eclipse.core.resources" but it cannot be resolved. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints > SEVERE: Bundle "org.eclipse.jdt.core" requires > "org.eclipse.core.runtime" but it cannot be resolved. > Jan 27, 2011 3:47:28 PM > org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints > SEVERE: Bundle "org.eclipse.jdt.core" requires > "org.eclipse.text" but it cannot be resolved. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.natures" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.builders" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.markers" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.markers" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point "org.eclipse.core.resources.markers" > not registered, but plugin "org.eclipse.jdt.core" defined in file:/ > home/xxx/project/war/WEB-INF/lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > [etc...] > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry registerExtensions > WARNING: Extension Point > "org.eclipse.core.runtime.preferences" not registered, but plugin > "org.eclipse.jdt.core" defined in file:/home/xxx/project/war/WEB-INF/ > lib/core-3.1.1.jar refers to it. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints > SEVERE: Bundle "org.eclipse.jdt.core" requires > "org.eclipse.core.resources" but it cannot be resolved. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints > SEVERE: Bundle "org.eclipse.jdt.core" requires > "org.eclipse.core.runtime" but it cannot be resolved. > Jan 27, 2011 3:47:30 PM > org.datanucleus.plugin.NonManagedPluginRegistry resolveConstraints > SEVERE: Bundle "org.eclipse.jdt.core" requires > "org.eclipse.text" but it cannot be resolved. > Jan 27, 2011 3:47:32 PM org.datanucleus.metadata.MetaDataManager > initialiseFileMetaDataForUse > SEVERE: Found Meta-Data for class escool.model.Person but this > class is not enhanced!! Please enhance the class before running > DataNucleus. > org.datanucleus.exceptions.NucleusUserException: Found Meta- > Data for class escool.model.Person but this class is not enhanced!! > Please enhance the class before running DataNucleus. > at > org.datanucleus.metadata.MetaDataManager.initialiseClassMetaData(MetaDataMa > nager.java: > 2225) > at > org.datanucleus.metadata.MetaDataManager.initialiseFileMetaData(MetaDataMan > ager.java: > 2176) > at > org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse(MetaD > ataManager.java: > 881) > at > org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit(MetaDataManage > r.java: > 794) > at > org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF(EntityManagerFac > toryImpl.java: > 488) > at > org.datanucleus.jpa.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImp > l.java: > 355) > at > org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.<init>(Da > tastoreEntityManagerFactory.java: > 63) > > atorg.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEnti > tyManagerFactory(DatastorePersistenceProvider.java: > 35) > at > javax.persistence.Persistence.createFactory(Persistence.java:172) > at > javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: > 112) > at > javax.persistence.Persistence.createEntityManagerFactory(Persistence.java: > 66) > at escool.controllers.EMF.<clinit>(EMF.java:8) > at > escool.controllers.HomeController.<init>(HomeController.java:21) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcce > ssorImpl.java: > 57) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstru > ctorAccessorImpl.java: > 45) > at > java.lang.reflect.Constructor.newInstance(Constructor.java:532) > at > com.google.appengine.tools.development.agent.runtime.Runtime.newInstance_(R > untime.java: > 112) > at > com.google.appengine.tools.development.agent.runtime.Runtime.newInstance(Ru > ntime.java: > 120) > at > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java: > 126) > at > org.springframework.beans.factory.support.SimpleInstantiationStrategy.insta > ntiate(SimpleInstantiationStrategy.java: > 72) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor y > $3.run(AbstractAutowireCapableBeanFactory.java:943) > at java.security.AccessController.doPrivileged(Native > Method) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > y.instantiateBean(AbstractAutowireCapableBeanFactory.java: > 941) > at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor > y.createBeanInstance(AbstractAutowireCapableBeanFactory.java: > 901) > at > ... > > read more » -- 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.