报此异常: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