Jboss 7战争部署失败
问题描述:
Jboss 7战争部署失败,我在日志中得到了下面的错误消息。Jboss 7战争部署失败
ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015052: Did not receive a response to the deployment operation within the allowed timeout period [60 seconds]. Check the server configuration file and the server logs to find more about the status of the deployment
我试过重新启动JBoss服务器,我从来没有见过这个之前,它工作正常。我搜索周围的解决方案和这个问题的原因,但无法找到任何真正有用的,任何人都可以帮助吗?
答
那么我试图删除日志文件,它在开始时帮助,但后来我再次得到错误。正确的解决方案如下:
转到Jboss_installation_dir\standalone\configuration
并找到文件standalone.xml
。更改以下行:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
<deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments" />
</subsystem>
到:
<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>
那么它应该工作的罚款。
注:这deployment-timeout
以秒为单位
答
这是由磁盘空间不足造成的,清除了一些不需要的日志文件和其他临时文件来解决这个问题。
答
当与JBoss 7(6.1+ EAP)记得编辑XML设置仅在服务器没有运行处理 - 否则他们将被覆盖,更改不会发生。
根据the documentation,Deployment-timeout
以秒为单位指定,Scan-interval
以毫秒为单位指定时间。
这是Sec中的超时值吗?或毫秒? – Avil 2013-12-16 05:19:48
以秒为单位。默认值是60秒,只需要足够大,现在就是1000秒 – anvarik 2013-12-16 07:59:14