intra-mart Accel Platform / 安装指南

第10版 2014-04-01

«  10.11.3.1. Linux环境下在部署WAR文件中发生文件输入输出错误时   ::   Contents   ::   10.11.3.3. Resin 中无法正常重新部署WAR文件时  »

10.11.3.2. Resin 上部署WAR文件时发生了错误时

10.11.3.2.1. Resin 启动时的控制台信息的确认和处理方法

确认在部署 Resin 时输出了以下消息。
java.lang.IllegalStateException: future timeout

10.11.3.2.2. 原因和处理方法

若确认有此消息,则可认为部署的war文件太大,部署所花费的时间超过了在“%RESIN_HOME%/conf/resin.xml”中
指定的“web-app-deploy dependency-check-interval”时间(默认为2秒)。
加大“%RESIN_HOME%/conf/resin.xml”的“dependency-check-interval”值。
<dependency-check-interval>300</dependency-check-interval>

※根据环境等情况不同,设定值也有可能不同。

或者,在“%RESIN_HOME%/conf/resin.xml”的“web-app-deploy”中设定“redeploy-mode=”manual””。
<host-default>
  <!-- creates the webapps directory for .war expansion -->
  <web-app-deploy path="webapps" redeploy-mode="manual"
                  expand-preserve-fileset="WEB-INF/work/**"
                  multiversion-routing="${webapp_multiversion_routing}"
                  path-suffix="${elastic_webapp?resin.id:''}"/>
</host-default>

注解

由于设定了“redeploy-mode=”manual””后就不会再对war文件进行更新检查,
所以也不会再显示上述消息。

«  10.11.3.1. Linux环境下在部署WAR文件中发生文件输入输出错误时   ::   Contents   ::   10.11.3.3. Resin 中无法正常重新部署WAR文件时  »