Wildfly启用数据源统计信息返回“JBAS014792:未知属性统计信息已启用”

时间:2015-04-11 07:40:25

标签: java mysql wildfly

当我尝试在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.Final
  • mysql:mysql-connector-java-5.1.35-bin.jar

1 个答案:

答案 0 :(得分:0)

确保您在路径 JBOSS_HOME/standalone/configuration/stanalone.xmlstanalone.xml 文件中具有属性 "statistics-enabled = true"< /strong> 对于您使用的每个数据源。

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