At line 5 changed 1 line. |
(1) First, you need to copy the entire appfuse deployment dir under jboss deploy dir. The default deploy dir in JBoss is something like "/server/default/deploy/". I needed to rename the dir as "appfuse.war" (Notice the .war in the name) so that jboss can detect it and reload it without errors. You can also simply deploy the WAR to this directory. |
(1) First, you need to copy the entire appfuse deployment dir under jboss deploy dir. The default deploy dir in JBoss is something like "/server/default/deploy/". I needed to rename the dir as "appfuse.war" (Notice the .war in the name) so that jboss can detect it and reload it without errors. You can also simply deploy the WAR to this directory. To enable automatic refreshing of JBoss AS WAR deployments add the following entries to your configuration files. |
At line 7 added 35 lines. |
Add your JBoss home directory to build.properties: |
{{{jboss.home=D:/JBossAS-4.0.3-SP1/server/default}}} |
|
Add the following Ant targets to the build.xml in the root of your project: |
{{{ |
<!-- =================================================================== --> |
<!-- The "jboss-undeploy" target deletes the web application archive --> |
<!-- from the JBoss servlet container. --> |
<!-- =================================================================== --> |
<target name="jboss-undeploy" if="jboss.home" |
description="Undeploy '${webapp.name}.war' from JBoss AS"> |
<echo message="Undeploying '${webapp.name}.war' from JBoss AS..."/> |
<delete file="${jboss.home}/deploy/${webapp.war}"/> |
</target> |
|
<!-- =================================================================== --> |
<!-- Refresh - Stops JBoss AS, and refreshes everything --> |
<!-- =================================================================== --> |
<target name="jboss-refresh" depends="jboss-undeploy,clean,jboss-deploy" |
description="Undeploys, cleans, then re-deploys"/> |
|
<!-- =================================================================== --> |
<!-- The "jboss-deploy" target deploys the web application in the war --> |
<!-- format to JBoss AS. --> |
<!-- =================================================================== --> |
<target name="jboss-deploy" depends="package-web" if="jboss.home" |
description="Deploy '${webapp.name}.war' to JBoss AS"> |
<echo message="Deploying '${webapp.name}.war' to JBoss AS..."/> |
<copy file="${webapp.dist}/${webapp.war}" |
todir="${jboss.home}/deploy"/> |
</target> |
}}} |
|
Run the {ant jboss-refresh} to refresh your webapp deployment. |
|