使用WildFly服务器运行Spring应用程序时出错 - Mysql Persistance错误 - 找不到Mysql数据源

时间:2018-04-07 10:57:39

标签: java spring spring-boot jboss

我知道这个问题可以在网页搜索和Stack Overflow上找到,但我的问题没有解决,我也找不到解决方案。

我正在处理Web服务,但在部署.war文件时遇到了一些错误。我该如何解决这个问题?

"WFLYCTL0412: Required services that are not installed:" => [
        "jboss.jdbc-driver.com_mysql_jdbc_Driver",
        "jboss.naming.context.java.MySqlDS"
    ],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => [
        "jboss.persistenceunit.\"GFI.war#primary\".__FIRST_PHASE__ is missing [jboss.naming.context.java.MySqlDS]",
        "jboss.data-source.\"jboss.naming.context.java.jboss.datasources.gfiDS\" is missing [jboss.jdbc-driver.com_mysql_jdbc_Driver]",
        "jboss.persistenceunit.\"GFI.war#primary\" is missing [jboss.naming.context.java.MySqlDS]"
    ]
}
11:51:39,740 INFO  [org.jboss.as.server] (ServerService Thread Pool -- 37) WFLYSRV0010: Deployed "GFI.war" (runtime-name : "GFI.war")
11:51:39,750 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
WFLYCTL0184:    New missing/unsatisfied dependencies:
      service jboss.jdbc-driver.com_mysql_jdbc_Driver (missing) dependents: [service jboss.data-source."jboss.naming.context.java.jboss.datasources.gfiDS"] 
      service jboss.naming.context.java.MySqlDS (missing) dependents: [service jboss.persistenceunit."GFI.war#primary", service jboss.persistenceunit."GFI.war#primary".__FIRST_PHASE__] 

11:51:39,985 INFO  [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0212: Resuming server
11:51:39,992 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:9990/management
11:51:39,995 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990
11:51:39,995 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 11.0.0.Final (WildFly Core 3.0.8.Final) started (with errors) in 18759ms - Started 762 of 1128 services (136 services failed or missing dependencies, 354 services are lazy, passive or on-demand)

0 个答案:

没有答案