I think I've committed a fully working version of this - check out the readme.txt in the examples dir for instructions on how to install webbeans to JBoss 5 and for how to deploy the example.