【问题标题】:JPA 2.0 with Weblogic 10.3.5 Eclipselink issue - This version of OpenJPA cannot read a persistence.xml documentJPA 2.0 与 Weblogic 10.3.5 Eclipselink 问题 - 此版本的 OpenJPA 无法读取 persistence.xml 文档
【发布时间】:2014-06-29 09:52:45
【问题描述】:

JPA 2.0“似乎”终于可以在我部署在 Weblogic 10.3.5 上的应用程序中运行(经过如下所述的调整)。

但是,我仍然在 WL 控制台终端上收到以下消息:

This version of OpenJPA cannot read a persistence.xml document with a version different from "1.0". Found: version "2.0" in

这在日志中出现了不止一次,我正在寻找某种方法来摆脱它。在某处读到 WL 11g 版本会发生这种情况,但有没有办法隐藏/消除或修复它?

环境:

Weblogic 10.3.5

  • Toplink 在控制台中配置为默认持久性提供程序
  • WL 类路径已修改为在路径前面的 WL 中包含 jpa2 特定 jar(如 Toplink with Weblogic 10.3 中所述)

从应用程序中删除了 Toplink jars。

【问题讨论】:

    标签: eclipselink jpa-2.0 weblogic-10.x


    【解决方案1】:

    我们已使用 Oracle 补丁在 WLS 10.3.5 上配置 JPA2 http://docs.oracle.com/cd/E24329_01/web.1211/e24972/using_toplink.htm#CIHIBGBG 看起来好像 Kodo 正在使用 openJPA。您可以考虑在控制台中配置 Toplink。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-13
      • 2012-01-06
      • 2012-06-27
      • 1970-01-01
      • 2011-08-15
      • 1970-01-01
      • 2013-04-21
      • 2019-03-04
      相关资源
      最近更新 更多