Java – eclipse Google App Engine “not enhanced”

First eclipse:

Can't get rid of this error... I've tried every suggested fix on Google

The persistence class "com.blahb.blahblah.master.usertoken" is similar to not being enhanced. You may need to rerun the enhancer and check the output for errors. " There is no table in the database, but it is required for the operation Please check the metadata specification of this class

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*

My colleague has the same project on her windows PC and works well

I tried three different PC versions of Linux, MAC, windows, three different eclipse versions, 20 different import methods, creating new projects, and so on

Yes, it has been corrected Classpath to reflect the correct location of all jar files I have tried to add each individual class java and jar suggested in the Google Blog to the class / buildpath (window – > pref – > Google – > ORM). There is no

Where is this damn "enhancer console", assuming eclipse? I'm running the latest eclipse using all the Google App Engine plug-ins

Any ideas? anybody..?

thank you!

Solution

The problem is that the enhancer of datanucleus will be removed from the builders list of the project For me, all projects such as cleaning and reconstruction are not helpful What you need to do is (1) create a new sample gae project, open the ". Project" file of the project in a plain text editor, and copy the text from there:

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

Now copy it to your own The bottom of the list of builders in the project file Datanucleus should now work properly I don't know why it sometimes disappears

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>