如何在JBoss AS 7中部署war文件? [英] How to deploy a war file in JBoss AS 7?

查看:177
本文介绍了如何在JBoss AS 7中部署war文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了JBoss Application Server 5并成功部署了war文件。我copypasted其具有简单的index.jsp文件成

I downloaded JBoss Application Server 5 and successfully deployed a war file. I copypasted the Hello.war which has a simple index.jsp file into

\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\server\default\deploy

和它的工作很好。

然而,当我使用JBoss AS 7并在此处部署war文件时,它没有被执行。

However when I used JBoss AS 7 and deployed the war file here, it did not get executed.

jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\deployments

如何部署它?

编辑:我用Google搜索但无法找到JBoss的信息AS 7是比较新的。

I googled it but was not able to find info as JBoss AS 7 is relatively new.

推荐答案

事实上,最新的 JBOSS 7 AS ,我们需要一个 .dodeploy 即使对于档案也是如此。因此,添加标记以触发部署。

Actually, for the latest JBOSS 7 AS, we need a .dodeploy marker even for archives. So add a marker to trigger the deployment.

在我的情况下,我在同一目录中添加了 Hello.war.deployed 文件,然后一切正常。

In my case, I added a Hello.war.deployed file in the same directory and then everything worked fine.

希望这有助于某人!

这篇关于如何在JBoss AS 7中部署war文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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