Websphere 7 EntityManagerFactory creation problem

后端 未结 1 920
死守一世寂寞
死守一世寂寞 2021-01-25 08:43

I\'m working on a maven project which uses seam 2.2.0, hibernate 3.5.0-CR-2 as JPA provider, DB2 as database server and Websphere 7 as application server. Now I\'m facing de fol

相关标签:
1条回答
  • 2021-01-25 09:31

    I suspect that you've included the JPA API jar in your EAR. When using "parent last" (also known as "load classes with application class loader first"), your application is loading a second copy of the javax.persistence.spi.PersistenceProvider class, which is incompatible with the copy included in WAS. You need to either remove those classes from your EAR or change back to "parent first" delegation mode.

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