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.
Yes, You can deploy two or more WAR/EAR files in the JBoss Application server.
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.
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.]
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With