编程语言
首页 > 编程语言> > java – WildFly 8.1.0.Final上Firebird数据源的“无法加载模块”错误

java – WildFly 8.1.0.Final上Firebird数据源的“无法加载模块”错误

作者:互联网

服务器启动错误消息是:

16:08:37,829 ERROR [org.jboss.as.controller.management-operation] (ServerService
 Thread Pool -- 27) JBAS014613: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "firebird")
]) - failure description: "JBAS010441: Failed to load module for driver [org.fir
ebirdsql]"

module.xml的内容:

<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.3" name="org.firebirdsql">
  <resources>
    <resource-root path="jaybird-2.2.5.jar"/>
  </resources>
  <dependencies>
    <module name="javax.api"/>
    <module name="javax.resource"/>
    <module name="javax.transaction.api"/>
  </dependencies>
</module>

standalone.xml中的驱动程序定义:

<driver name="firebird" module="org.firebirdsql">
  <driver-class>org.firebirdsql.jdbc.FBDriver</driver-class>
</driver>

(基于http://masterjboss.blogspot.de/2014/03/how-to-configure-mysql-jdbc-driver-in.html)

一个类似的问题(没有接受答案):Db2 Driver/Datasource setup on wildfly: Failed to load module for driver [com.ibm]

解决方法:

替换< module name =“javax.resource”/>与< module name =“javax.resource.api”/>在依赖项部分.

标签:java,jdbc,firebird,wildfly,jaybird
来源: https://codeday.me/bug/20190830/1768989.html