Where are managed appplication stored in EAP 6 / WildFly ?

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

This is a very frequent question. The short answer is in the data folder of the application servers and additionally into the Domain Controller data folder (if using domain mode). I'll however show how to "recover" the application from there.

Let's say you have deployed an application in a Domain. (Things work much the same in standalone mode). You need at first to know the hash of the application. Check it into the domain.xml file:

<deployment name="as7project.war" runtime-name="as7project.war">
	<content sha1="15aca568030ef6157f25387af23bbdcd6689b2ca"/>
</deployment>
<deployment name="Browser.war" runtime-name="Browser.war">
	<content sha1="a82c0200bfa0aed8c81fcc08f1db53634286cf71"/>
</deployment>	

Now execute an ls of your JBOSS_HOME/domain/data/content folder:

[jboss@machine01 content]$ ls

15  a8

Here you found, in two folders, the initial two characters of the deployment. Let's enter "15" which matches with as7project.war

[jboss@machine01 content]$ cd 15

[jboss@machine01 15]$ ls

aca568030ef6157f25387af23bbdcd6689b2ca

 Now copy the application and rename it as as7project.war:

[jboss@machine01 15]$ cp aca568030ef6157f25387af23bbdcd6689b2ca /home/jboss/as7project.war

You can check with any unzip tool that the renamed file is actually your application:

jar tvf as7.project.war

Great! we have learnt how to recover a deployed application from the data folder of the application server!


Advertisement

Related articles available on mastertheboss.com

How to configure JBoss to disable hot deployment ?

On JBoss AS 7 and WildFly the default rule is that archived appli

How do I make sure my MBean is deployed after my EJB ?

  If your MBean is dependant on another resource, supposing cont

How do I change the default lib directory in an ear file?

  Supposing you have an Enterprise application which has been pa

How to let JBoss deploy an application after other apps?

  If you are running JBoss AS 7 or WildFly check the following t

How to deploy an application temporarly with JBoss ?

One way to do it, is using the jboss.system:service=MainDeployer

How to add a custom JBoss archive in an Ear ?

JBoss custom archives (like .sar or .har) are not recognized by t