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

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

问题描述

我在/usr/local/jboss-4.3/下的Ubuntu上运行JBoss 4.3.我已经将我的应用程序作为WAR文件即myapp.war部署到了/usr/local/jboss-4.3/server/myserver/deploy.但是,deploy文件夹下似乎没有一个爆炸"的/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目录中.这样,便可以在Web应用程序下修改文件,例如配置设置等.

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天全站免登陆