Websphere HibernatePersistence incompatible with PersistenceProvider

后端 未结 2 659
孤独总比滥情好
孤独总比滥情好 2021-01-17 01:10

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

相关标签:
2条回答
  • 2021-01-17 01:57

    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.

    0 讨论(0)
  • 2021-01-17 02:05

    The only option (aside from not overriding javax.persistence) is to disable container-managed JPA altogether for this application. See the documentation in PM26361.

    0 讨论(0)
提交回复
热议问题