Corda Database Manager无法创建数据源

时间:2019-05-23 22:30:02

标签: corda

将Corda节点从CE3.2升级到CE4.0,并遵循以下文档步骤:

运行ubuntu@ip-xyz:~$ java -jar tools-database-manager-4.0.jar dry-run -b /opt/corda/

给出错误:

Exporting the current database migrations ...
Failed to create datasource.
Please check that the correct JDBC driver is installed in one of the following folders:
     - /opt/corda/drivers
     - plugins
     - cordapps
Caused By java.nio.file.NoSuchFileException: plugins
2019-05-23 22:24:16,284 Thread-0 WARN Unable to register Log4j shutdown hook because JVM is shutting down. Using SimpleLogger

我已经安装了驱动程序,插件和cordapps所需的所有文件夹,并安装了MS SQL驱动程序mssql-jdbc-6.2.2.jre8.jar。

1 个答案:

答案 0 :(得分:0)

node.conf中的"jarDirs"键隐藏了数据库迁移所需的文件夹。

通过删除以下几行,数据库管理器工具成功完成了空运行。

    "jarDirs" : [
        "plugins",
        "cordapps"
    ]