Jboss 7 war deployment failed

无人久伴 提交于 2019-12-02 17:30:25
anvarik

Well I tried deleting the log file, it helped at the beginning but then I got the error again. The proper solution is as following:

Go to Jboss_installation_dir\standalone\configuration and find the file standalone.xml. Change the following line:

<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
    <deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments"  />
</subsystem>

into:

<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
    <deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments" deployment-timeout="1000" />
</subsystem>

then it should work fine.

NOTE: This deployment-timeout is in seconds

It was caused by insufficient space on the disk, cleared some unwanted log files and other temp files to fix this issue.

Maciej Piekarski

When dealing with JBoss 7 (6.1+ EAP) remember to edit XML settings only when the server is not running - otherwise they will be overwritten and the changes will not take place.

According to the documentation, Deployment-timeout is specified in seconds and Scan-interval time is specified in miliseconds.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!