java.lang.NoSuchMethodError: javax.persistence.OneToMany.orphanRemoval()

前端 未结 4 1011
天涯浪人
天涯浪人 2021-01-05 19:54

I have a maven project that uses spring, hibernate (3.6.4), GWT(2.3), drools,.... Everything used to work fine till I began using hibernate OneToMany, ManyToMany relations..

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-05 20:42

    Thanks....This helped me with the same problem. When running as a web app I got the "Bad" path but when running as an application I got the "Good" path.

    Bad /C:/Program Files (x86)/IBM/SDP/runtimes/base_v7/plugins/javax.j2ee.persistence.jar

    Good /C:/hibernate-release-4.1.7.Final%20(1)/hibernate-release-4.1.7.Final/lib/required/hibernate-jpa-2.0-api-1.0.1.Final.jar

提交回复
热议问题