您的位置:首页 > 编程语言 > Java开发

Exception:javax.persistence.OneToMany.orphanRemoval()Z

2012-04-26 20:31 393 查看
Exception in thread "main" java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z

at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1912)

at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:796)

at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:707)

at org.hibernate.cfg.Configuration$MetadataSourceQueue.processAnnotatedClassesQueue(Configuration.java:4035)

at org.hibernate.cfg.Configuration$MetadataSourceQueue.processMetadata(Configuration.java:3989)

at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1398)

at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:1002)

at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:130)

at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:92)

at com.koala.ebuy.common.util.ExportDB.main(ExportDB.java:9)

把Java EE 5 Libraries下的javaee.jar删除了就可以了

如果你需要用到javax.servlet,只需另外添加javax.servlet.Jar
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐