【发布时间】:2011-10-05 13:58:03
【问题描述】:
尝试使用 JPA @PersistenceContext 注释时,我在 Websphere 中收到错误消息。
我使用 JPA 2.0 和 hibernate 作为持久性提供程序,在类路径中有所有必需的 hibernate 3.5 jar 文件。
为什么会出现这个错误信息?
问题描述:注解 PersistenceContext 将不会被识别 WebSphere Application Server v7.0 运行时。设置 使用 EJB61FEPScanPolicy 自定义属性为 true 此模块的 MANIFEST.MF 文件。
【问题讨论】:
-
您是否设置了
标记并将 Classloader 策略修改为描述的here?