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.
OC4J_PATH\j2ee\home\lib\persistance.jar this jar file jpa 1 and loaded with server start i replaced this jar with Jpa 2 jar with the same name and my app run normally