JBoss.org Community Documentation
You must set the JBOSS_HOME environment variable to run any of the tutorial examples.
Unix: $ export JBOSS_HOME=<where your jboss 5.x distribution is> Windows: $ set JBOSS_HOME=<where your jboss 5.x distribution is>
To run these examples you need JBossAS 5.0.1 GA or higher version (if available). JBossAS can be downloaded from here.