简体   繁体   English

Denodo Jar与Play Framework Jar发生冲突

[英]Denodo Jar get conflicts with Play Framework Jar

I am using : Latest version of play framework wi.-> 2.3.5 Latest version of Denodo -> 5.5 win 我正在使用:最新版本的play框架wi .-> 2.3.5最新版本的Denodo-> 5.5 win

Denodo is using Apache Common Codec 1.3 whereas Play is using few new methods introduced in Apacahe Common Codec 1.4 (Eg Caused by: java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha1Hex(Ljava/lang/String;)Ljava/lang/String; ). Denodo使用的是Apache Common Codec 1.3,而Play使用的是Apacahe Common Codec 1.4中引入的一些新方法(例如,造成原因: java.lang.NoSuchMethodError: org.apache.commons.codec.digest.DigestUtils.sha1Hex(Ljava/lang/String;)Ljava/lang/String; )。 Somehow denodo's legacy jar is getting preference over play's jar. denodo的旧版jar以某种方式变得比play的jar更受青睐。

Is there any way to get rid of this situation? 有什么办法可以摆脱这种情况?

Instead of using the denodo-vdp-jdbcdriver.jar , use the denodo-vdp-jdbcdriver-basic.jar . 而不是使用denodo-vdp-jdbcdriver.jar ,请使用denodo-vdp-jdbcdriver-basic.jar

From the Denodo Virtual DataPort Developer Guide: 从《 Denodo虚拟数据端口开发人员指南》中:

There are two versions of the JDBC driver to connect to Virtual DataPort (both located in the folder /lib/vdp-jdbcdriver-core/) 有两种版本的JDBC驱动程序可连接到Virtual DataPort(均位于/ lib / vdp-jdbcdriver-core /文件夹中)

  1. denodo-vdp-jdbcdriver.jar (recommended version). denodo-vdp-jdbcdriver.jar(推荐版本)。
  2. denodo-vdp-jdbcdriver-basic.jar denodo-vdp-jdbcdriver-basic.jar

Both versions are the same except that the “basic” one does not contain the third-party dependencies required by the driver. 两种版本相同,除了“基本”版本不包含驱动程序所需的第三方依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM