Eclipse Google -App -Engine“将不会增强" [英] Eclipse Google -App -Engine "Will NOT Enhance"

查看:93
本文介绍了Eclipse Google -App -Engine“将不会增强"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

第一次Eclipse:

First Eclipse:

无法摆脱此错误... 尝试过Google上所有建议的修复程序.

Cannot get rid of this error... Have tried every suggested fix on google..

持久性类"com.blahb.blahblah.master.UserToken类似乎没有得到增强.您可能想重新运行增强器并检查输出中是否有错误."数据库中没有表,但是操作需要它.请检查此类的MetaData规范.

List of 500 lines of exceptions...
*Caused by:
javax.jdo.JDOUserException: Persistent class "Class com.blahb.blahblah.master.UserToken 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.
    at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:375)
    at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:230)
    at com.gulfnet.gulfstar.master.Master.getUserToken(Master.java:645)
    at org.apache.jsp.top_jsp._jspService(top_jsp.java:68)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet*

我的同事在Windows PC上也有相同的项目,并且运行良好...

My co-worker has this same project on her windows PC and it runs fine...

我尝试了三种不同的PC的linux,mac,windows,3种不同的eclipse版本,20种不同的导入方式,创建新项目等....

I've tried three different PC's linux, mac, windows, 3 different eclipse versions, 20 different ways of importing, creating new project, ect....

是的,.classpath已更正以反映所有jar文件的正确位置. 我已经尝试将Google博客之一上建议的每一个单独的类,java,jar添加到类/buildpath(窗口-> pref-> google-> orm)中...

Yes, the .classpath was corrected to reflect the correct location of all jar files. I've tried adding every-single class, java, jar as suggested on one of the google blogs to the class/buildpath (window -> pref -> google -> orm) nothing...

该死的"Enhancer Console"应该在Eclipse中在哪里呢? 我正在运行带有所有Google-app-engine插件的最新Eclipse..

And where is this damn "Enhancer Console" that is suppose to be in Eclipse...? I am running the latest Eclipse, with ALL the Google-app-engine plugins..

有什么想法...吗?任何人..?

Any ideas...? Anyone..?

谢谢!

推荐答案

问题是,DataNucleus的增强器已从项目的构建器列表中删除.对我来说,清理,重建等所有项目都无济于事.您需要做的是(1)创建一个新的示例GAE项目,在纯文本编辑器中打开该项目的".project"文件,然后从此处复制此文本:

The problem is that the Enhancer for DataNucleus gets removed from the list of Builders for the project. For me all the Project Clean, rebuilt, etc. did not help. What you need to do is to (1) Create new sample GAE project, open the ".project" file of that project in plain text editor, copy this text from there:

<buildCommand>
    <name>com.google.appengine.eclipse.core.enhancerbuilder</name>
    <arguments></arguments>
</buildCommand>

现在将其复制到您自己的.project文件中的构建器列表的底部.现在,DataNucleus应该可以正常工作.我不知道为什么有时会消失.

Now copy this to the bottom of the list of builders in your own .project file. Now DataNucleus should work fine. I have no idea why it sometimes deappears.

这篇关于Eclipse Google -App -Engine“将不会增强"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆