users@glassfish.java.net

V2 directory deployment of EJB3 - JPA

From: <glassfish_at_javadesktop.org>
Date: Tue, 24 Mar 2009 13:16:33 PDT

I am developing an application using JPA, the ejb module has few session beans and pojo entity beans. when I deploy the Ear file, everything works fine. But when I try to deploy the exploded directory i get this any error.

The command I use is
asadmin deploydir --user admin C:\Apps\NetBeans\WorkSpace\GRS\LApps\LGRS\EApp-ear\target\EApp-ear-1.0

And here is the error
CLI171 Command deploydir failed : Deploying application in domain failed; Error loading deployment descriptors for module [EApp-ear-1.0] -- Invalid ejb jar [EApp-ejb-1.0.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.

Thanks
[Message sent by forum member 'avinaren' (avinaren)]

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