users@glassfish.java.net

Deploying application in domain failed

From: <glassfish_at_javadesktop.org>
Date: Fri, 23 Apr 2010 02:14:25 PDT

I am trying to deploy a .ear file in Glassfish server using "asadmin deploy" command on the command line and getting the below error. Please help.

CLI171 Command deploy failed : Deploying application in domain failed; Error loading deployment descriptors for module [<MODULE_NAME>] -- Invalid ejb jar [<has-<Name>-R<Version>.jar>]: it contains zero ejb.
Note:
1. A valid ejb jar requires at least one session, entity (1.x/2.x style), or message driven bean.
2. EJB3+ entity beans (@Entity) are POJOs and please package them as library jar.
3. If the jar file contains valid EJBs which are annotated with EJB component level annotations (@Stateless, @Stateful, @MessageDriven), please check server.log to see whether the annotations were processed properly.
[Message sent by forum member 'chandrasekharmsc']

http://forums.java.net/jive/thread.jspa?messageID=398636