Go to the documentation page http://www.jboss.org/docs
and "Download Template and Examples." :
then go to the template directory in the package and read 'Readme.txt'. You'll also need to install xdoclet.
It shows a lot of warnings, but it works out-of-the-box :-)
I typed ant in the cmp2 dir, automatically it built and deployed.
I want to know how to invoke the test.
I actually typed ant test , it gave errors.