jboss7 standlone 部署打开的应用文件夹

针对报错

17:47:13,705 ERROR [org.jboss.as.server.deployment.scanner] (Deploymen
tScanner-threads - 1) JBAS015010: The deployment scanner found a direc
tory named WEB-INF that was not inside a directory whose name ends wit
h .ear, .jar, .rar, .sar or .war. This is likely the result of unzippi
ng an archive directly inside the D:\resp\jboss-as-7.1.1.Final\standal
one\deployments directory, which is a user error. The WEB-INF director
y will not be scanned for deployments, but it is possible that the sca
nner mayfind other files from the unzipped archive and attempt to depl
oy them, leading to errors.

以应用文件夹app为例,部署步骤如下

将应用文件夹"jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\deployments",

重命名工程文件夹为 app.war,并新建文件app.war.dodeploy。

更改"jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\configuration\standalone.xml"文件的deployment-scanner元素,增加auto-deploy-exploded="true",改为 <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000" auto-deploy-exploded="true"/>

重启jboss即可。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值