Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does jboss eap 6.x deploy the war file?

I used the jboss web console http://xxxxx:9990/console/App.html#deployments to successfully deploy my web app. And I can visit the page in this app.

But I can not find my war file under jboss-eap-6.2/standalone/deployments. Where does jboss backend put the war file?

thanks.

like image 383
liam xu Avatar asked May 02 '15 00:05

liam xu


People also ask

Can we deploy two WAR files in JBoss?

Yes, You can deploy two or more WAR/EAR files in the JBoss Application server.

Where do I put WAR files in Wildfly?

The standard location for deployments in standalone mode is Wildfly_Home/standalone/deployments so you can copy your war to that folder via Java or any other means. It will deploy then upon starting the server.

How do you deploy a WAR in JBoss EAP 7?

From the JBoss bin directory, run the command jboss-cli --connect to start the JBoss CLI and connect to the application server. Run the /deployment command on the compressed WAR file or exploded WAR folder. [If you are deploying to a managed domain, also run the /server-group command.]


1 Answers

Under the base directory of your jboss instance will be /data and /tmp folders corresponding to ${jboss.server.data.dir} and ${jboss.server.tmp.dir}. These folders are created by jboss when it first starts.

The uploaded war is stored in a file called /data/content/ad/xxxxx/content where xxxxx is some temporary directory name.

When JBoss is running the exploded contents of your war will be in the /tmp/vfs/temp/tempxxxxxxx/content-yyyyyyy where xxxxxxx and yyyyyyy are random hex values.

These files are all internal to JBoss. When JBoss is stopped you can safely remove the /tmp folder and on the next startup JBoss will redeploy the war from the uploaded /data file contents - this is controlled by an entry in your configuration.xml file.

If you accidentally remove the /data folder then JBoss will not start. To fix this you need to either start your instance with the --admin-only switch and redeploy your war, or carefully edit your configuration.xml to remove the deployment, and then start JBoss and redeploy your war using the console.

like image 163
shonky linux user Avatar answered Sep 29 '22 17:09

shonky linux user