我们可以在JBoss AS 7中将Web应用程序部署为文件夹而不是war文件吗? [英] Can we deploy web application as a folder instead of war file in JBoss AS 7

查看:53
本文介绍了我们可以在JBoss AS 7中将Web应用程序部署为文件夹而不是war文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个查询 1.我可以在JBoss AS 7中将Web应用程序部署为文件夹而不是war文件吗? 2.如果没有,如何在不重新构建/部署war文件的情况下更新JSP或html或js文件?

I am having two queries 1. Can I deploy web application as a folder instead of war file in JBoss AS 7? 2. If not ,how to update the JSP or html or js files with out building/deploying the war file again?

推荐答案

JBoss支持部署存档文件或作为分解目录的功能.要分解Java EE归档文件,请将归档文件解压缩到名为相同的目录作为归档文件.只要目录名称具有正确的扩展名(.war,.ear等),JBoss就会正常部署该目录.因此,如果您的war文件的名称为HelloWorld.war,则分解目录的名称也应为HelloWorld.war.

JBoss supports the ability to deploy an archive file or as an exploded directory. To explode a Java EE archive, unzip the archive to a directory that is named the same as the archive file. As long as the directory name has the correct extension (.war, .ear, etc.) JBoss will deploy the directory normally. So if your war file has name HelloWorld.war, your exploded directory name should be HelloWorld.war too.

请注意,建议您在standalone.xml配置文件中编辑deployment-scanner并将auto-deploy-exploded属性更改回 false 以进行爆炸式部署.引自 JBoss 7.1文档:

Please also note that it is recommended to edit your deployment-scanner in the standalone.xml configuration file and changing auto-deploy-exploded property back to false for exploded deployment. Quote from JBoss 7.1 Documentation:

强烈建议对爆炸的内容使用手动部署模式,因为 爆炸的内容天生就容易受到扫描仪试图 自动部署部分复制的内容.

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://community.jboss.org/thread/200114 .看起来这是JBoss 7.1.1中一个已确认的错误,JBoss会忽略jsp-configuration中的配置,并且不会重新加载已修改的jsp.在7.1.2中已修复.您需要每晚构建7.1.2.或者,如果您有企业支持,请与JBoss支持人员联系.

Please see link https://community.jboss.org/thread/200114. Looks like this is a confirmed bug in JBoss 7.1.1 that JBoss ignores the configuration in jsp-configuration and does not reload modified jsp. It is fixed in 7.1.2. You need to build 7.1.2 nightly build yourself. Or talk to JBoss Support if you have Enterprise support.

这篇关于我们可以在JBoss AS 7中将Web应用程序部署为文件夹而不是war文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆