Websphere v8.5.5 supports JPA 2.0 out of the box.
I am trying to deploy a WAR to a Websphere v8.5.5 application server. My persistence.xml specifies org.hibern
The problem was hibernate-jpa-2.0-api-1.0.1.Final.jar.
My understanding of the linked articles was that I should be including this JAR with my application. However, by removing this JAR the class cast exception has gone away.
The only option (aside from not overriding javax.persistence) is to disable container-managed JPA altogether for this application. See the documentation in PM26361.