How to deploy to JBoss

You can deploy scooter-powered web application to JBoss by following these steps:

We are going to use the blog sample application as an example. We have tested with JBoss-5.1.0.GA.

Basic steps

1. Create a war file

> ant war -DappPath=webapps/blog

The war file will be created in the build/war directory.

2. Copy the war file to JBoss

Copy the war file under JBoss's deploy directory such as %JBOSS_HOME%\server\default\deploy

There is no need to expand the war file.

3. Add some more properties to JAVA_OPTS

Windows: Add to run.conf.bat file after others JAVA_OPTS:

set "JAVA_OPTS=%JAVA_OPTS% -Dtomcat=true -Dapp.name=blog.war -Dapp.logs={log_dir_path}"

Linux: Add to run.conf file after others JAVA_OPTS:

JAVA_OPTS="$JAVA_OPTS -Dtomcat=true -Dapp.name=blog.war -Dapp.logs={log_dir_path}"

If you have extracted your war file to a directory named blog for example, then you should use app.name=blog.

If you have already specified paths to the log files in the WEB-INF/config/log4j.properties file, you do not need the app.logs property.

4. Start up JBoss

> run (./run.sh for Linux)

Now you should see your app running in JBoss here: http://localhost:8080/blog