本文介绍了是否可以在 JBoss AS 7 中部署分解的战争文件(解压缩的战争)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

'app.war' 文件复制到以下部署文件夹时,我在部署文件时没有问题:
"jboss-as-7.0.0.Finaljboss-as-7.0.0.Finalstandalonedeployments";JBoss7 会正确部署它.
我想对分解的文件夹 'app'(即提取的 app.war)执行相同的操作.Apache Tomcat 可以在其部署目录中的展开文件夹中正常工作,但对于 JBoss 则无法正常工作.

我确实在 JBoss 控制台中放置了 deployment-scanner auto-deploy-exploded='true';我确实在部署目录中创建了 'app.war.dodeploy' 文件以及提取的 'app' 文件夹.我无法在 jboss 服务器中部署和启动应用程序".

我想知道是否可以在JBoss7中部署一个分解的war文件(解压缩的war).


我想特别部署一个解压缩的文件夹,因为我正在使用'Kwatee'部署软件.Kwatee 将分解(提取的战争)文件夹复制到其目标服务器部署文件夹.如果有人知道如何让 Kwatee 按原样移动war"文件,而不是移动提取的 war 文件夹,我将不胜感激.如果有人可以为 Kwatee 或 回答我之前的相关问题

解决方案

将您的文件夹重命名为 app.war 并触摸您的 app.war.dodeploy 文件.>

我还建议在 standalone.xml 配置文件中编辑您的 deployment-scanner 并将 auto-deploy-exploded 属性改回.

来自管理指南 - JBoss AS 7.0:

强烈建议对分解内容使用手动部署模式,因为分解内容本质上很容易受到试图自动部署部分复制内容的扫描仪的攻击.

I Have no problem in deploying an 'app.war' file when copied into the below deployments folder :
"jboss-as-7.0.0.Finaljboss-as-7.0.0.Finalstandalonedeployments"; JBoss7 would deploy it properly.
I would like to do the same for an exploded folder 'app'(i.e. extracted app.war). Apache Tomcat works properly with an exploded folder in its deployment directories, but am unable to do the same for JBoss.

I did put deployment-scanner auto-deploy-exploded='true' in JBoss console; and I did create 'app.war.dodeploy' file along with an extracted 'app' folder in deployments directory. I am unable deploy and start the 'app' in jboss server.

I am wondering if it is possible to deploy an exploded war file (unzipped war) in JBoss7.


I would like to particularly deploy an unzipped folder because I am using 'Kwatee' deployment software. Kwatee copies an exploded (extracted war) folder to its target server deployment folder. I would appreciate if anyone knows How to make Kwatee move a 'war' file as it is, instead of moving an extracted war folder. I would also appreciate if anyone can suggest an alternate software for Kwatee or answer my previous related question

解决方案

Rename your folder to app.war and touch your app.war.dodeploy file.

I would also recommend editing your deployment-scanner in the standalone.xml configuration file and changing auto-deploy-exploded property back to false.

From Admin Guide - JBoss AS 7.0:

这篇关于是否可以在 JBoss AS 7 中部署分解的战争文件(解压缩的战争)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 00:57