Is it possible to deploy an exploded war file (unzipped war) in JBoss AS 7

柔情痞子 提交于 2019-11-27 02:06:27

问题


I Have no problem in deploying an 'app.war' file when copied into the below deployments folder :
"jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\deployments"; 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


回答1:


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:

Manual deploy mode is strongly recommended for exploded content, as exploded content is inherently vulnerable to the scanner trying to auto-deploy partially copied content.



来源:https://stackoverflow.com/questions/14368629/is-it-possible-to-deploy-an-exploded-war-file-unzipped-war-in-jboss-as-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!