我正在尝试为WildFly 10.0安装MySQL驱动程序,但遇到了一些问题。
我正在遵循这些说明here
我已经使用Maven来获取驱动程序JAR (这工作得很好)。
mvn dependency:copy -Dartifact=mysql:mysql-connector-java:5.1.18 \
-DoutputDirectory=/path/to/SERVER_HOME/modules/com/mysql/jdbc/main/我正在尝试运行此命令来设置JBOSS中的MySql驱动程序
./path/to/SERVER_HOME/bin/jboss-cli.sh --file=/path/to/mysql-database-config-wildfly.cli我得到了这个错误:
/apps/wildfly/bin/jboss-cli.sh --file=/home/ec2-user/aerogear-unifiedpush-server-1.1.0.Final/databases/mysql-database-config-wildfly.cli
07:24:48,338 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 4) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("jdbc-driver" => "mysqlup")
]) - failure description: "WFLYJCA0041: Failed to load module for driver [com.mysql.jdbc]"
The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error): {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "WFLYJCA0041: Failed to load module for driver [com.mysql.jdbc]"}}由于这是一个全新的安装,我被什么问题难住了。我以前没有使用过JBoss,所以我希望有人能帮助我,给我指明正确的方向。
发布于 2016-01-28 00:42:43
我没有阅读完整的用户指南,但是你错过了模块的添加。简单地将依赖项复制到模块目录是行不通的。需要使用module add命令行界面命令。这是一个用于PostgreSQL的example。
https://stackoverflow.com/questions/35008797
复制相似问题