1

WebSphere 7 只支持 JEE5,不支持 6。所以它不支持 JPA2 规范(我知道 Hibernate 实现了 JPA2 规范)。但是 Hibernate 如何与 Tomcat 和 Jetty 一起工作(它们只是 servlet 容器,不是应用服务器,而且它们不支持 EE 和 JPA2)?如果 Hibernate 可以与 Tomcat 一起使用,为什么最新版本不能与 WAS 7 一起使用?

4

2 回答 2

2

您需要安装 IBM WebSphere Application Server V7 Feature Pack for OSGi Applications 和 Java Persistence API 2.0

于 2012-05-28T09:42:18.340 回答
1

Another option would be to put all JPA api JARs you need into the WAR or EAR and set the class loader to PARENT_LAST. We've done that on a number of occasions when WebSphere has been behind the curve.

于 2012-05-30T14:03:30.843 回答