java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()Z 问题
2012-03-23 13:38
411 查看
一个简单一对一联系 两个类 其中一个用了@OnetoOne 注解 错误提示: Exception in thread "main" java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()Z at org.hibernate.cfg.AnnotationBinder.processElementAnnotations(AnnotationBinder.java:1560) at org.hibernate.cfg.AnnotationBinder.processIdPropertiesIfNotAlready(AnnotationBinder.java:762) at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:726) at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:636) at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:359) at org.hibernate.cfg.Configuration.generateDropSchemaScript(Configuration.java:838) at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:128) at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:91) at text.HibernateORmappingText.TextSchemaExpory(HibernateORmappingText.java:8) at text.HibernateORmappingText.main(HibernateORmappingText.java:12) 原因hibernate的jar包里面加了那个ejb3的jar包与JPA包冲突 ejb删就OK了 本次问题成功解决 |
相关文章推荐
- WebLogic下开发Hibernate问题 java.lang.NoSuchMethodError:javax.persistence.OneToMany.orphanRemoval()Z
- java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- Exception in thread "main" 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
- 报此错错解决办法:java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z
- 关于java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()Z的bug
- java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()
- 关于java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()Z的bug
- 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
- 异常:Caused by: java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z/Caused by: java.lang.NoSuchMethodError: javax.persistence.JoinColumn.foreign
- 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()Z
- 解决办法汇总:java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()Z