在调试模式下部署.war
失败,出现以下错误!
它在nornalt中工作正常。运行模式为STS。
堆栈追踪:
10:30:06,715 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.3.Final
10:30:07,718 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.2.Final
10:30:07,802 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015899: WildFly 8.2.0.Final "Tweek" starting
10:30:09,707 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment shoppingcart-app.war
10:30:10,139 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015014: Re-attempting failed deployment shoppingcart.war
10:30:10,148 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS015003: Found shoppingcart-app.war in deployment directory. To trigger deployment create a file called shoppingcart-app.war.dodeploy
答案 0 :(得分:0)
昨天我遇到了完全相同的问题。
在互联网上进行一些搜索后,我发现以下解决方案对我有用:
使用文本编辑器从jboss目录打开/standalone/configuration/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 =&#34; 1000&#34; 属性添加到 deployment-scanner 标记
<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>