1.1.1. Running the examples on JBoss AS
First, make sure you have Ant correctly installed, with $ANT_HOME and $JAVA_HOME set correctly. Next, make sure you set the location of your JBoss AS installation in the build.properties file in the root folder of your Seam installation. If you haven't already done so, start JBoss AS now by typing bin/run.sh or bin/run.bat in the root directory of your JBoss installation.
By default the examples will deploy to the default configuration of the server. These examples should be deployed to the production configuration if they are to be used with JBoss Enterprise Application Platform 4.2, and the example build.xml file should be modified to reflect this before building and deploying. Two lines should be changed in this file:
<property name="deploy.dir" value="${jboss.home}/server/production/deploy"/>
<property name="webroot.dir"
value="${deploy.dir}/jboss-web.deployer/ROOT.war"/>
Now, build and deploy the example by typing ant deploy in the examples/ directory.
registration
Try it out by accessing http://localhost:8080/seam-registration/ with your web browser.