I had to struggle a bit to have the JBoss.3.0TemplateAndExamples/template sample working. Comparing to the available document, there are several missing ingredients in the receipe. So I wrote a small HOWTO : http://jmvanel.free.fr/jboss3-howto.html
to tell the exact procedure to run the sample from JBoss.org : JBOSS 3.0 GETTING STARTED JBoss.3.0TemplateAndExamples.zip