I'm using OC4J 10.1.3.5.0 and there is a problem with jpa 2. I put hibernate-jpa-2.0-api-1.0.1.Final.jar in the class path. When deploy my app and use @OneToMany annotation in my code, I get this exception: java.lang.NoSuchMethodError:javax.persistence.OneToMany.orphanRemoval()Z
When i remove it from code, my app runs normally.