Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/64.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
JBoss Wildfly 10 MYSQL驱动程序安装问题_Mysql_Maven_Jboss_Wildfly - Fatal编程技术网

JBoss Wildfly 10 MYSQL驱动程序安装问题

JBoss Wildfly 10 MYSQL驱动程序安装问题,mysql,maven,jboss,wildfly,Mysql,Maven,Jboss,Wildfly,我正在尝试为WildFly 10.0 bue安装MySQL驱动程序,但遇到了一些问题 我遵守这些指示 我已经使用Maven来获取驱动程序JAR(这工作得很好) 我正试图运行这个命令在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=/ho

我正在尝试为WildFly 10.0 bue安装MySQL驱动程序,但遇到了一些问题

我遵守这些指示

我已经使用Maven来获取驱动程序JAR(这工作得很好)

我正试图运行这个命令在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,所以我希望有人能帮助我,并为我指出正确的方向。

我没有阅读完整的用户指南,但您错过了模块的添加。仅仅将依赖项复制到modules目录是行不通的。您需要使用
module add
CLI命令。下面是PostgreSQL的一个示例。

您应该使用wildfly10和使用mysql的javaee7查看这个示例
/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]"}}