今天做的一个项目在部署的时候。用的jboss7.1.1,因为初始化的时候需要从数据库中提取的数据比较多,所以启动时间过长,导致报错。错误:
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的配置信息即可。
解决办法: 修改standalone.xml 的配置
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" />
</subsystem>
添加 deployment-timeout="1000"
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
<deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" deployment-timeout="1000"/>
</subsystem>
原文地址:http://www.mamicode.com/info-detail-494987.html