문제

I just upgraded to hibernate 3.5.1 and I get an error now saying:

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

This only happens with Tomcat not with Jetty.

I've checked and I don't have any conflict and this method definitely exists. I have hibernate-jpa-2.0-api-1.0.0.Final.jar on the class path, and don't have any conflicting classes.

Any suggestions?

도움이 되었습니까?

해결책

For some reason the maven tomcat deploy process was copying in the old EJB JAR. When I did it manually it works fine.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top