【发布时间】:2021-04-28 00:24:06
【问题描述】:
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]"
]
}
我附上显示一些文件的项目截图。
我们将不胜感激。
【问题讨论】:
-
数据源 JNDI 名称不存在导致失败。
-
数据源 JNDI 名称不存在在哪里?你能具体点吗?非常感谢!
-
我在 WildFly Standalone.xml 中将 JNDI 名称指定为
标签: mysql gradle intellij-idea wildfly