无法在 WildFly 下使用 MySQL 和 Gradle 运行 IntelliJ 项目
Unable to run IntelliJ project with MySQL and Gradle under WildFly
14:10:16,119 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "Countries-Balci-1.0.war")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"Countries-Balci-1.0.war#Countries-BalciPU\" is missing [jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB]",
"jboss.persistenceunit.\"Countries-Balci-1.0.war#Countries-BalciPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB]"
]
}
14:10:16,120 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "Countries-Balci-1.0.war" was rolled back with the following failure message:
{
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"Countries-Balci-1.0.war#Countries-BalciPU\" is missing [jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB]",
"jboss.persistenceunit.\"Countries-Balci-1.0.war#Countries-BalciPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB]"
]
}
我附上显示一些文件的项目截图。
非常感谢您的帮助。
java:app/jdbc/CountriesDB 是您在名称 下注册数据源时在持久性单元中使用的名称java:/国家数据库。如您所见,它们不匹配。
14:10:16,119 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "Countries-Balci-1.0.war")]) - failure description: {
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"Countries-Balci-1.0.war#Countries-BalciPU\" is missing [jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB]",
"jboss.persistenceunit.\"Countries-Balci-1.0.war#Countries-BalciPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB]"
]
}
14:10:16,120 ERROR [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0021: Deploy of deployment "Countries-Balci-1.0.war" was rolled back with the following failure message:
{
"WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => [
"jboss.persistenceunit.\"Countries-Balci-1.0.war#Countries-BalciPU\" is missing [jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB]",
"jboss.persistenceunit.\"Countries-Balci-1.0.war#Countries-BalciPU\".__FIRST_PHASE__ is missing [jboss.naming.context.java.app.\"Countries-Balci-1.0\".jdbc.CountriesDB]"
]
}
我附上显示一些文件的项目截图。
非常感谢您的帮助。
java:app/jdbc/CountriesDB 是您在名称 下注册数据源时在持久性单元中使用的名称java:/国家数据库。如您所见,它们不匹配。