DataNucleus JDO with Google Cloud Tools for Eclipse

I am using the relatively new Google Cloud Tools plugin for Eclipse , replacing the Google plugin for Eclipse . I converted the App Engine project to a new plugin environment, but now the application has stopped working.

When requesting a servlet using a Google DataStore record, the following error appears:

javax.jdo.JDOUserException: Persistent class \"Class 
CLASSNAME does not seem to have been enhanced. You may want to rerun 
the enhancer and check for errors in the output.\" has no table in the 
database, but the operation requires it. Please check the specification 
of the MetaData for this class.

The GPE (Google Plugin Eclipse) had some options for this: https://developers.google.com/eclipse/docs/appengine_orm and https://developers.google.com/eclipse/docs/appengine_datanucleus .

Unfortunately, there are no settings in the new plugin. I tried to add the DataNucleus plugin for Eclipse, but then I get an error: Error: Could not find or load main class org.datanucleus.enhancer.DataNucleusEnhancerwhen it tries to improve classes.

I already tried this too: https://cloud.google.com/appengine/docs/standard/java/datastore/jdo/overview-dn2#Enhancing_Data_Classes , but I don’t understand how to use this with the new plugin.

I use all the latest versions of Google Cloud (App Engine SDK 1.9.50).

Any help is much appreciated!

+4
source share
1 answer

Cloud Tools Eclipse Datanucleus, Datanucleus Maven : http://www.datanucleus.org/products/datanucleus/jdo/enhancer.html#maven

+2

Source: https://habr.com/ru/post/1674760/


All Articles