我已按照本手册从GlassFish迁移到WildFly:http://wildfly.org/news/2014/02/06/GlassFish-to-WildFly-migration/
但是,在WildFly中运行我的应用程序时出现以下错误:
错误[org.jboss.as.controller.management-operation](控制器启动线程)WFLYCTL0013:操作("deploy")失败 - 地址:([("deployment" => "exampleProject-ear-1.0-SNAPSHOT.ear")]) - 失败描述:{"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.persistenceunit." exampleProject -ear-1.0-SNAPSHOT.ear / exampleProject-web-1.0-SNAPSHOT.war #exampleProjectPU \“ . FIRST_PHASE is missing [jboss.naming.context.java.jdbc.__TimerPool] ", " jboss.persistenceunit . \ "exampleProject-ear-1.0-SNAPSHOT.ear/exampleProject-web-1.0-SNAPSHOT.war#exampleProjectPU" is missing [jboss.naming.context.java.jdbc.__TimerPool] ”]}
该错误涉及jboss.naming.context.java.jdbc .__ TimerPool . 知道我该怎么办?我正在使用WildFly 10和MySQL作为数据库 .
2 回答
忘了这个 . __TimerPool是GlassFish中数据源的名称,我在不知情的情况下使用它,我只是删除了包含它的persistence.xml文件并且它有效 .
检查您的standalone.xml . 它必须具有池名为“exampleProjectPU”的数据源 . 像这样的东西 . 请删除完整的xml块 .