我正在尝试将新的数据源mysql jdbc驱动程序添加到我的wildfly服务器
我创建了文件夹wildfly.x.x.x / modules / system / layers / base / com / MysqL / main
我在这里有jdbc jar文件和module.xml
MysqL">
MysqL-connector-java-5.1.34-bin.jar"/>
然后将dataresource代码添加到standalone-full.xml(在datareources标记下)
MysqLDS" pool-name="MysqLDS" enabled="true" use-java-context="true">
MysqL://localhost:3306/test MysqLDriver
但是当我去wildfly控制面板http:// localhost:9990 / console /
dataresource没有出现,我错过了什么?
Unexpected HTTP response: 500
Request
{
"address" => [
("subsystem" => "datasources"),("data-source" => "MysqL")
],"operation" => "test-connection-in-pool"
}
Response
Internal Server Error
{
"outcome" => "Failed","failure-description" => "JBAS010440: Failed to invoke operation: JBAS010447: Connection is not valid","rolled-back" => true
}
最佳答案