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
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
相关文章推荐
- Exception in thread "main" java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- Error/Exception-01-hibernate(jar包冲突)--javax.persistence.OneToMany.orphanRemoval()Z异常
- Hibernate java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- 解决办法汇总:java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- 异常:Caused by: java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z错误
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z异常
- ssh中nested exception is java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- OneToOne注解报异常:java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- WebLogic下开发Hibernate问题 java.lang.NoSuchMethodError:javax.persistence.OneToMany.orphanRemoval()Z
- hibernate java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z