The volunteer docs got me started. http://www.jboss.org/online-manual/HTML/ and are still applicable if you using version 2 and can give you a lot of insight as to how the code became version 3.
If you're not using ant, start. It's got two great targets called ejbjar and ear which will build the elements of the same name.
The ear target requires an application.xml and and ejb-jar & war files. For the layout of the application.xml check out $JBOSS_HOME/doc/dtd/web-app_2_2.dtd. Version 3 JBoss. It's simple layout. Don't be put off by all the legal mumbo jumbo at the top. The fun starts at line 80 or so.
The ejb-jar target requires class files and jboss.xml, jaws.xml, & ejb-jar.xml file, If your're using $JBOSS_HOME/doc/dtd/ejb-jar.dtd I haven't made it to 2.0 stuff yet, but I'm sure the requirements are laid out in
I configured my own target to build my war, but its pretty much the same old format
The web.xml and jboss-web.xml will need to go in the web-inf directory. Compile your classes to classes. Put your libs in lib. Jar the whole shooting match with a war extension and you're ready to go. Call ejbjar target as many times as needed. Call the ear target. Voila one ear ready to deploy. You mileage may vary.
Hope it helps