首页 > 解决方案 > WAR 不会在 WildFly 上部署 - 没有错误

问题描述

我试图让我的应用程序的 WAR 文件部署在 WildFly 13 上。它在 Tomcat 下部署得很好。我最初在 Java EE 7 上遇到了一些问题,试图使用 CDI 等(我不想要,因为它是 Spring 应用程序),但我解决了这些问题。现在,它只是静静地坐在那里 10 分钟,然后放弃:

2018-07-13 08:20:01,988 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "myapp.war" (runtime-name: "myapp.war")
2018-07-13 08:30:00,086 ERROR [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0022: Deploy of deployment "myapp.war" was rolled back with no failure message
2018-07-13 08:30:00,087 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0027: Operation was interrupted before service container stability could be reached. Process should be restarted. Step that first updated the service container was 'deploy' at address '[("deployment" => "myapp.war")]'

然后,再停顿 2 分钟后,它会吐出一连串“这个 JAR 有一个未解决的类路径引用”的消息,并说 WAR 未部署:

2018-07-13 08:32:02,720 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0059: Class Path entry chartfx.gauge.design.jar in /C:/FDE/wildfly-13.0.0.Final/bin/content/myapp.war/WEB-INF/lib/chartfx.gauge-7.0.2.jar  does not point to a valid jar for a Class-Path reference.
...
2018-07-13 08:32:05,084 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0028: Stopped deployment myapp.war (runtime-name: myapp.war) in 124998ms

作为参考,这个 WAR 在 Tomcat 上部署大约需要 2 分钟。早期版本在 JBoss 7.1 上运行良好,当时它是当前版本。

无声的故障模式是最令人恼火的方面;关于如何诊断的任何建议?

标签: javawildfly

解决方案


提取战争并检查所有 jar 文件的清单。似乎那里编码了一些类路径,它引用了一些不应该存在的开发人员的机器。或者提出一个错误报告供开发人员修复。


推荐阅读