Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.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
Java Wildfly启用数据源统计返回;JBAS014792:启用未知属性统计信息;_Java_Mysql_Wildfly - Fatal编程技术网

Java Wildfly启用数据源统计返回;JBAS014792:启用未知属性统计信息;

Java Wildfly启用数据源统计返回;JBAS014792:启用未知属性统计信息;,java,mysql,wildfly,Java,Mysql,Wildfly,当我尝试在wildfly中启用mysql数据源的统计信息时,它会抛出以下错误: Internal Server Error { "outcome" => "failed", "result" => {"step-1" => { "outcome" => "failed", "failure-description" => "JBAS014792: Unknown attribute statistics-enabled

当我尝试在wildfly中启用mysql数据源的统计信息时,它会抛出以下错误:

Internal Server Error
{
    "outcome" => "failed",
    "result" => {"step-1" => {
        "outcome" => "failed",
        "failure-description" => "JBAS014792: Unknown attribute statistics-enabled",
        "rolled-back" => true
    }},
    "failure-description" => {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014792: Unknown attribute statistics-enabled"}},
    "rolled-back" => true
}
我使用一个正常的mysql数据源,它工作起来没有问题。这里有什么问题

环境:

  • java:1.8.0_25
  • Wildfly 8.2.0.1决赛
  • mysql:mysql-connector-java-5.1.35-bin.jar

确保您在路径JBOSS_HOME/standalone/configuration/standalone.xml下的stanalone.xml文件中为您正在使用的每个数据源设置了属性“statistics enabled=true”

为此,首先需要停止JBoss服务器,修改standalone.xml,然后启动服务器