java - 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 上运行良好,当时它是当前版本。
无声的故障模式是最令人恼火的方面;关于如何诊断的任何建议?
解决方案
提取战争并检查所有 jar 文件的清单。似乎那里编码了一些类路径,它引用了一些不应该存在的开发人员的机器。或者提出一个错误报告供开发人员修复。
推荐阅读
- json - 如何通过循环JSON在golang中显示丢失的键?
- css - 为什么尝试添加背景图像时出现解析错误?
- mongodb - 如何修复“com.mongodb.MongoSocketOpenException:异常打开套接字”错误?
- excel - 将数值表达式从 Y 轴转换为 X 轴
- scala - Keep组合的意义?
- ruby - 使用服务器端加密更新对象上的 S3 KMS 密钥
- java - 如果给定值不为空,则应用过滤器
- reactjs - 来自 reactstrap 库的 Modal 中的渲染链接
- twitter-bootstrap - 如何 v-for Bootstrap vue 工具提示
- php - “简单的 PHP 和 MySqli 登录表单不起作用”