users@glassfish.java.net

Re: Invalid ejb jar - it contains zero ejb.

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Fri, 22 Feb 2008 20:55:42 -0800

glassfish_at_javadesktop.org wrote:
> I have a persistent (no pun intended) problem with the error message described in the subject line. In NetBeans, I select "directory deployment" (which is not the default,
Are you sure about that? for a web app, did deploy is default I think
for GF target.
> but I choose it since it lets me hot deploy JSF page changes). Then I start debugging my app.
>
> The *first* time, I get
>
> Deploying application in domain failed; Error loading deployment descriptors for module [Foo] -- Invalid ejb jar [Foo-ejb.jar]: it contains zero ejb.
Wierd. What do you really deploy? a Web App project, and EAR project or
the default IDE project (which might contain a bogus Foo ejb module...
Do you have somewhere a Foo ejb module with no ejbs in it?

Ludo
>
> 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.
>
> The message is bogus, I think. The packaging is done by NetBeans, and it looks ok to me.
>
> Then I select Run->Debug again. This time, all is well and the debugger starts.
>
> This happens with NetBeans 6.0 and 6.01 and with GlassFish v2 and v2ur1. Can anyone shed a light on this issue?
>
> Thanks,
>
> Cay
> [Message sent by forum member 'cayhorstmann' (cayhorstmann)]
>
> http://forums.java.net/jive/thread.jspa?messageID=260546
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>