【问题标题】:Jboss 7 war deployment failedJboss 7战争部署失败
【发布时间】:2013-02-06 17:20:52
【问题描述】:

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 服务器,我以前从未见过,它之前工作正常。我用谷歌搜索了这个问题的解决方案和原因,但找不到任何真正有用的东西,有人可以帮忙吗?

【问题讨论】:

    标签: deployment jboss war


    【解决方案1】:

    在处理 JBoss 7 (6.1+ EAP) 时,请记住仅在服务器未运行时编辑 XML 设置 - 否则它们将被覆盖并且不会发生更改。

    根据the documentationDeployment-timeout 以秒为单位,Scan-interval 时间以毫秒为单位。

    【讨论】:

      【解决方案2】:

      好吧,我尝试删除日志文件,它在开始时有所帮助,但后来我又遇到了错误。正确的解决方法如下:

      转到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 以秒为单位

      【讨论】:

      • 这个超时值是秒吗?还是毫秒?
      • 以秒为单位。默认是 60 秒,只要让它足够大,现在例如 1000 秒
      【解决方案3】:

      这是由于磁盘空间不足导致的,清除了一些不需要的日志文件和其他临时文件以解决此问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-10-20
        • 2018-11-20
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多