我正在尝试将 orientdb 配置为 Wildfly9 的数据源,但无处可去。
17:12:22,344 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "AccessControlDS")
]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.data-source.java:jboss/datasources/AccessControlDS is missing [jboss.jdbc-driver.orientdb]",
"jboss.driver-demander.java:jboss/datasources/AccessControlDS is missing [jboss.jdbc-driver.orientdb]"
]}
orient jdbc 驱动程序(orientdb-jdbc-2.1.12-all.jar)作为模块安装在wildfly 中wildfly/modules/system/layers/base/com/orientdb/main 下。
模块.xml
<module xmlns="urn:jboss:module:1.3" name="com.orientdb">
<resources>
<resource-root path="orientdb-jdbc-2.1.12-all.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
<module name="javax.servlet.api" optional="true"/>
</dependencies>
</module>
独立-full.xml
<subsystem xmlns="urn:jboss:domain:datasources:3.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/AccessControlDS" pool-name="AccessControlDS" enabled="true" use-java-context="true">
<connection-url>jdbc:orient:remote:orientdb/access-control</connection-url>
<driver>orientdb</driver>
<security>
<user-name>xxxx</user-name>
<password>yyyy</password>
</security>
</datasource>
</datasources>
<drivers>
<driver name="orientdb" module="com.orientdb">
<driver-class>com.orientchnologies.orient.jdbc.OrientJdbcDriver</driver-class>
<datasource-class>com.orientechnologies.orient.jdbc.OrientDataSource</datasource-class>
</driver>
</drivers>
</subsystem>
查询 jboss 控制台的数据源返回: /subsystem=datasources:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"data-source" => {"AccessControlDS" => {
"allocation-retry" => undefined,
"allocation-retry-wait-millis" => undefined,
"allow-multiple-users" => false,
"background-validation" => undefined,
"background-validation-millis" => undefined,
"blocking-timeout-wait-millis" => undefined,
"capacity-decrementer-class" => undefined,
"capacity-decrementer-properties" => undefined,
"capacity-incrementer-class" => undefined,
"capacity-incrementer-properties" => undefined,
"check-valid-connection-sql" => undefined,
"connectable" => false,
"connection-listener-class" => undefined,
"connection-listener-property" => undefined,
"connection-properties" => undefined,
"connection-url" => "jdbc:orient:remote:orientdb/access-control",
"datasource-class" => undefined,
"driver-class" => undefined,
"driver-name" => "orientdb",
"enabled" => true,
"exception-sorter-class-name" => undefined,
"exception-sorter-properties" => undefined,
"flush-strategy" => undefined,
"idle-timeout-minutes" => undefined,
"initial-pool-size" => undefined,
"jndi-name" => "java:jboss/datasources/AccessControlDS",
"jta" => true,
"max-pool-size" => undefined,
"min-pool-size" => undefined,
"new-connection-sql" => undefined,
"password" => "yyyy",
"pool-prefill" => undefined,
"pool-use-strict-min" => undefined,
"prepared-statements-cache-size" => undefined,
"query-timeout" => undefined,
"reauth-plugin-class-name" => undefined,
"reauth-plugin-properties" => undefined,
"security-domain" => undefined,
"set-tx-query-timeout" => false,
"share-prepared-statements" => false,
"spy" => false,
"stale-connection-checker-class-name" => undefined,
"stale-connection-checker-properties" => undefined,
"statistics-enabled" => false,
"track-statements" => "NOWARN",
"tracking" => false,
"transaction-isolation" => undefined,
"url-delimiter" => undefined,
"url-selector-strategy-class-name" => undefined,
"use-ccm" => true,
"use-fast-fail" => false,
"use-java-context" => true,
"use-try-lock" => undefined,
"user-name" => "xxxx",
"valid-connection-checker-class-name" => undefined,
"valid-connection-checker-properties" => undefined,
"validate-on-match" => undefined
}},
"jdbc-driver" => {"orientdb" => {
"deployment-name" => undefined,
"driver-class-name" => "com.orientchnologies.orient.jdbc.OrientJdbcDriver",
"driver-datasource-class-name" => "com.orientechnologies.orient.jdbc.OrientDataSource",
"driver-major-version" => undefined,
"driver-minor-version" => undefined,
"driver-module-name" => "com.orientdb",
"driver-name" => "orientdb",
"driver-xa-datasource-class-name" => undefined,
"jdbc-compliant" => undefined,
"module-slot" => undefined,
"profile" => undefined,
"xa-datasource-class" => undefined
}},
"xa-data-source" => undefined
}
}