wildfly8 mysql,将MySql添加到JBoss 8.1(Wildfly)

I have done everything as described in the tutorial; yet I keep getting this error on start up:

14:42:19,442 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([

("subsystem" => "datasources"),

("data-source" => "ExpensesDataSourcePool")

]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [

"jboss.data-source.java:/ExpensesDataSource is missing [jboss.jdbc-driver.mysql]",

"jboss.driver-demander.java:/ExpensesDataSource is missing [jboss.jdbc-driver.mysql]"

]}

14:42:19,450 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([

("subsystem" => "datasources"),

("data-source" => "ExpensesDataSourcePool")

]) - failure description: {

"JBAS014771: Services with missing/unavailable dependencies" => [

"jboss.data-source.java:/ExpensesDataSource is missing [jboss.jdbc-driver.mysql]",

"jboss.driver-demander.java:/ExpensesDataSource is missing [jboss.jdbc-driver.mysql]"

],

"JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {

"Services that were unable to start:" => [

"jboss.data-source.reference-factory.ExpensesDataSourcePool",

"jboss.naming.context.java.ExpensesDataSource"

],

"Services that may be the cause:" => ["jboss.jdbc-driver.mysql"]

}

}

14:42:19,489 INFO [org.jboss.as.server] (ServerService Thread Pool -- 28) JBAS018559: Deployed "mysql-connector-java-5.1.34.jar" (runtime-name : "mysql-connector-java-5.1.34.jar")

14:42:19,491 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report

JBAS014775: New missing/unsatisfied dependencies:

service jboss.jdbc-driver.mysql (missing) dependents: [service jboss.data-source.java:/ExpensesDataSource, service jboss.driver-demander.java:/ExpensesDataSource]

This is the structure of my modules dir in the Jboss folder: modules/com/mysql/main with two files module.xml and mysql-connector-java-5.1.34.jar

This is my module.xml file:

I have also added the mysql jar in standalone/deployments

This is the configuration of my datasource and driver in my standalone.xml under standalone/configuration

jdbc:mysql://localhost:3306/expenses

mysql

root

root

解决方案

I found my error, I had to put my module.xml and jar under system modules instead of creating a new com folder

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值