簡體   English   中英

使用Google Cloud Tools for Eclipse的DataNucleus JDO

[英]DataNucleus JDO with Google Cloud Tools for Eclipse

我正在使用相對較新的Google Cloud Tools Tools for Eclipse ,取代了Google Plugin for Eclipse 我已將我的App Engine項目轉換為新插件的環境,但現在應用程序停止了工作。

請求使用Google DataStore條目的servlet時出現以下錯誤:

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.

GPE(Google Plugin Eclipse)提供了一些選項: https//developers.google.com/eclipse/docs/appengine_ormhttps://developers.google.com/eclipse/docs/appengine_datanucleus

不幸的是,新插件中沒有此設置。 我嘗試為Eclipse添加DataNucleus插件,但后來我收到錯誤: Error: Could not find or load main class org.datanucleus.enhancer.DataNucleusEnhancer當它嘗試增強類時, Error: Could not find or load main class org.datanucleus.enhancer.DataNucleusEnhancer

我也嘗試了這個: https//cloud.google.com/appengine/docs/standard/java/datastore/jdo/overview-dn2#Enhancing_Data_Classes ,但我不知道如何在新插件中使用它。

我使用了所有最新版本的Google Cloud(App Engine SDK 1.9.50)。

任何幫助是極大的贊賞!

新的Cloud Tools for Eclipse插件不支持Datanucleus,推薦的方法是使用Datanucleus Maven插件進行增強: http ://www.datanucleus.org/products/datanucleus/jdo/enhancer.html#maven

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM