Add a <deployment/> part under <deployments/> tag in the standalone.xml file (<JBoss Installation Directory>/standalone/standalone.xml) to automatically deploy applications (WAR files) during JBoss AS starting time:
Now, each time you start JBoss AS, application server will try to deploy the wars specified in the standalone.xml file.
<server> <!-- ... --> <!-- ... --> <deployments> <deployment name="my.war" runtime-name="my.war"> <fs-archive path="Path/to/my.war"> </fs-archive></deployment> <deployment name="other.war" runtime-name="other.war"> <fs-archive path="Path/to/some/other.war"> </fs-archive></deployment> </deployments> <!-- ... --> <!-- ... --> </server>
Now, each time you start JBoss AS, application server will try to deploy the wars specified in the standalone.xml file.