如何让 JBoss 分解已部署的 WAR 文件? [英] How can I get JBoss to explode a deployed WAR file?

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

问题描述

我在/usr/local/jboss-4.3/下的 Ubuntu 上运行 JBoss 4.3.我已将我的应用程序作为 WAR 文件(即 myapp.war)部署到/usr/local/jboss-4.3/server/myserver/deploy.但是deploy文件夹下好像没有'exploded'的/myapp目录,怎么回事?

I am running JBoss 4.3 on Ubuntu under /usr/local/jboss-4.3/. I have deployed my application as a WAR file i.e. myapp.war, to /usr/local/jboss-4.3/server/myserver/deploy. However, there doesn't seem to be an 'exploded' /myapp directory under the deploy folder, how come?

我习惯于在 Windows 上运行 Tomcat,所以我对 JBoss 有点陌生.当你部署 WAR 到 Tomcat 时,这个 WAR 的物理内容将被分解到一个/myapp 目录.有了这个,然后可以修改网络应用程序下的文件,例如配置设置等.

I am used to Tomcat running on Windows so I am a bit new to JBoss. When you deply WAR to Tomcat, the physical contents of this WAR will be exploded to a /myapp directory. With this it is then possible to modify files under the web app, such as config settings etc.

如何在 JBoss 中执行此操作?

How can I do this in JBoss?

推荐答案

您可以将 .war 内容解压缩到myapp.war"文件夹中,JBoss 会将其视为已部署的应用程序,就像它是压缩的战争一样.

You can unzip your .war contents in a "myapp.war" folder, which JBoss will consider a deployed application just as if it was a zipped war.

更好的是,大多数 IDE(当然是 Eclipse,但我猜其他 IDE,例如 Netbeans)允许您部署分解的包而不是压缩的 .war,允许您只更改您修改的单个文件而不是整个文件.war 包

Even better, most IDEs (Eclipse for sure, but i guess other IDEs such as Netbeans) allow you to deploy the exploded package instead of the zipped .war, allowing you to change just the single files you modify instead of the whole .war package

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

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