No, you can't package EJBs into a war file unless you are using GlassFish V3. You need to create an ear file or deploy the ejb jar separately.
I suggest you look into JavaEE Tutorial for examples.
Regards,
-marina
[Message sent by forum member 'mvatkina' (mvatkina)]
http://forums.java.net/jive/thread.jspa?messageID=293142