java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()Z

报此异常:java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()Z

原因:hibernate-jpa-2.0-api-1.0.0.Final.jar会和ejb3-persistence.jar里很多重复,难免会出现冲突情况。

解决办法:把ejb3-persistence.jar包删掉,

java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()Z,布布扣,bubuko.com

java.lang.NoSuchMethodError: javax.persistence.OneToOne.orphanRemoval()Z

上一篇:Knockout JS实现任务管理应用程序


下一篇:Tomcat7中WebSocket初探