Wildfly无法正常启动

时间:2018-02-09 08:01:04

标签: deployment wildfly

所以我对wildfly没有开始有一个相当奇怪的问题......

如果我清除除了一个.war文件之外的所有内容的独立/部署,那么wildfly就会完美地启动。然后我可以添加所有其他.war文件(总共6个),wildfly会毫无问题地部署它们。

但是,如果我拥有所有战争文件并启动wildfly则完全失败。它保持在一切都设置为.isdeploying可能持续5分钟的状态,直到一切都设置为失败。

我从service wildfly status

获取的日志
Feb 09 08:49:12 wildfly[2079]: /etc/init.d/wildfly: 3: /etc/default/wildfly: default: not found
Feb 09 08:49:12 wildfly[2079]:  * Starting WildFly Application Server wildfly
Feb 09 08:49:43 wildfly[2079]:    ...done.
Feb 09 08:49:43 wildfly[2079]:  * WildFly Application Server hasn't started within the timeout allowed
Feb 09 08:49:43 wildfly[2079]:  * please review file "/var/log/wildfly/console.log" to see the status of the service

以前有人见过这样的事吗?

在看完之后我发现这就是它取消部署之前的所有内容:

ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated t
he service container was 'add' at address '[
    ("core-service" => "management"),
    ("management-interface" => "http-interface")
]'

但我仍然不确定我的意思......

3 个答案:

答案 0 :(得分:2)

从WildFly 11及更高版本的IIRC开始,我也遇到了这种情况。

您是否正在尝试在服务器引导时访问公共IP或管理IP?基本上,您必须等到服务器开始访问这些IP。

我的解决方法是使用部署扫描程序检查的标记文件。 https://docs.jboss.org/author/display/WFLY/Application+deployment#Applicationdeployment-MarkerFiles

在开始使用wildfly之前,您必须为每个要跳过的.war放置一个.skipdeploy文件。然后,当服务器启动时,您只需要删除该文件即可让wildfly开始部署。您可以通过制作shell脚本并从standalone.sh

调用它来实现。

答案 1 :(得分:0)

此错误表示您的IP/Port正在被其他进程使用。

使用以下命令进行检查 对于Windows:use netstat -aon | find "port number"

答案 2 :(得分:0)

您可以配置jboss.as.management.blocking.timeout系统属性来调整等待服务容器稳定性的超时(秒),如下所示:

...
</extensions>
<system-properties>
      <property name="jboss.as.management.blocking.timeout" value="900"/> 
</system-properties>
<management>
...

或者,如果仍然不能以这种方式工作,请在启动期间收集一系列线程转储,以便我们可以看到它可能会被卡住。