[appengine-java] Re: Can't integrate my GoogleAppEngine(GAE/J) app with JPA (DataNucleus) !
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
[appengine-java] Re: Can't integrate my GoogleAppEngine(GAE/J) app with JPA (DataNucleus) !
Hi, Maybe, if you start now with gaej and as many peole have jpa issues similar to yours, you should check out alternatives to JPA as they are nowadays strongly encouraged by Google GAEJ team: See http://code.google.com/appengine/docs/java/datastore/overview.html: The Java SDK includes implementations of the Java Data Objects (JDO) and Java Persistence API (JPA) interfaces for modeling and persisting data. These standards-based interfaces include mechanisms for defining classes for data objects, and for performing queries. In addition to the standard frameworks and low-level datastore API, the Java SDK supports other frameworks designed to simplify datastore usage for Java developers. A large number of Java developers use these frameworks. The Google App Engine team highly recommends them and encourages you to check them out. I personally switched to Objectify months ago: I am highly satisfied: simple, efficient, transparent. regards didier On Jan 27, 5:35 pm, 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: