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.
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.