All the EJBs are annotated. I found a workaround -- the package in which the EJB POJOs were was mycompany.project.beans. When I changed this to mycompany.project the jar deployed without any error.
I could reproduce the error by changing the package name back to mycompany.project.beans
So, I don't what was messing things up.
[Message sent by forum member 'r_sudh' (r_sudh)]
http://forums.java.net/jive/thread.jspa?messageID=217534