JBoss AS7:Timeout deploying JBoss applications

问题现象:jboss在开机部署时,由于软件包的问题,导致部署时间超过jboss默认时间(60秒),jboss重新部署,打断上一次部署,如此反复,导致网站启动失败
 
Code: 
KB-E1037
Issue: 

There is an error message in log file while deploying JBoss application

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.

Resolution: 

In the local Git repository of the application locate file ".openshift/config/stanalone.xml" and open it in an editor.

Look up this section 

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

and add "deployment-timeout" attribute to the "deployment-scanner" tag with big enough number. E.g.

<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
     <deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments" deployment-timeout="1200" />
</subsystem>
The attributes are
NameTypeDescription
nameSTRINGThe name of the scanner. default is used if not specified
pathSTRINGThe actual filesystem path to be scanned. Treated as an absolute path, unless the 'relative-to' attribute is specified, in which case the value is treated as relative to that path.
relative-toSTRINGReference to a filesystem path defined in the "paths" section of the server configuration, or one of the system properties specified on startup. In the example above jboss.server.base.dir resolves to {{$JBOSS_HOME/standalone
scan-enabledBOOLEANIf true scanning is enabled
scan-intervalINTPeriodic interval, in milliseconds, at which the repository should be scanned for changes. A value of less than 1 indicates the repository should only be scanned at initial startup.
auto-deploy-zippedBOOLEANControls whether zipped deployment content should be automatically deployed by the scanner without requiring the user to add a .dodeploy marker file.
auto-deploy-explodedBOOLEANControls whether zipped deployment content should be automatically deployed by the scanner without requiring the user to add a .dodeploy marker file. Setting this to 'true' is not recommended for anything but basic development scenarios, as there is no way to ensure that deployment will not occur in the middle of changes to the content.
deployment-timeoutLONGimeout, in seconds, a deployment is allows to execute before being canceled. The default is 60 seconds.

参考:

https://openshift.redhat.com/community/kb/kb-e1037-timeout-deploying-jboss-applications

https://docs.jboss.org/author/display/AS7/Deployment+Scanner+configuration

转载于:https://www.cnblogs.com/inteliot/archive/2012/09/07/2675626.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值