The J2EE Component Wizard is a Java Swing application, that supports the creation of J2EE Components (EJBs, Servlets, JSPs, Filter, Test Clients) and the required deployment descriptors.
The tool is freeware. The wizard is optimized for JBoss, but with your own template files, all application servers will be supported.
Have a look at:
http://www.j2eeguru.net/html/j2ee_component_wizard.html