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

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

问题描述

我下载了 JBoss Application Server 5 并成功部署了一个 war 文件.我将具有简单 index.jsp 文件的 Hello.war 复制粘贴到

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-jdk6jboss-5.1.0.GAserverdefaultdeploy

而且效果很好.

然而,当我使用 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.Finaljboss-as-7.0.0.Finalstandalonedeployments

如何部署?

我用谷歌搜索但无法找到信息,因为 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.

希望这对某人有所帮助!

Hope this helps someone!

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

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