Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get JBoss to explode a deployed WAR file?

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?

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.

How can I do this in JBoss?

like image 296
rmcc Avatar asked Jan 28 '09 11:01

rmcc


People also ask

Where does JBoss exploded WAR files?

If you take a look at the $JBOSS_HOME/standalone/content/dc/9567f71b186466b21fff825d60f5fbc84ae6b1/content/ you will see the exploded war content. Since this content is managed, don't touch it directly by copying file to it manually, always use the Management API (through the jboss-cli or the web console).

What is exploded deployment in JBoss?

An exploded deployment is an application which is not packaged in a . war, . ear or . jar file but it's contained in a directory using these extensions (.

What is exploded deployment?

Most containers also support an alternative way of deploying an application, where you create a directory with a WAR or EAR structure and point the container to it. This is usually referred to as exploded.

Can we deploy WAR file in JBoss?

After you configure all properties files in WAR files, you must deploy these WARs through the app server. IMPORTANT: The following configuration is same for all app servers, except the deployment paths for app servers.


1 Answers

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.

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

like image 175
Raibaz Avatar answered Sep 19 '22 13:09

Raibaz