当我尝试在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数据源,无需麻烦。这可能有什么问题?
环境:
答案 0 :(得分:0)
确保您在路径 JBOSS_HOME/standalone/configuration/stanalone.xmlstanalone.xml 文件中具有属性 "statistics-enabled = true"< /strong> 对于您使用的每个数据源。
首先,您需要停止 JBoss 服务器,修改 standalone.xml,然后启动服务器。