GAE中JDO出现的持久化问题

The class "The class "cn.neilone.appspot.model.Article" is not persistable. 
This means that it either hasnt been enhanced, or that the enhanced version of 
the file is not in the CLASSPATH (or is hidden by an unenhanced version), or 
the Meta-Data/annotations for the class are not found." is not persistable. 
This means that it either hasnt been enhanced, or that the enhanced version of 
the file is not in the CLASSPATH (or is hidden by an unenhanced version), 
or the Meta-Data for the class is not found.

Caused by:

org.datanucleus.jdo.exceptions.ClassNotPersistenceCapableException: 

 这是我用JDO持久化数据时出现的问题,提示是类不是持久化的,见鬼,我Annotation命名是配置正确,绝对不会是我的问题,那就是GAE的问题。

    问题出在以dataucleus开头的几个jar上,我在classpath中是添加了这几个jar的


                      

  解决方法就是从classpath中删除这几个jar就可以了,感觉莫名其妙的。

哦,还要提醒一下,在部署是这几个jar还是需要放在war/WEB-INF/lib下的,要不然就部署错误了。呵呵
 

你可能感兴趣的:(Web,GAE)