users@glassfish.java.net

Re: Invalid ejb jar .... it contains zero ejb.

From: Hong Zhang <Hong.Zhang_at_Sun.COM>
Date: Sun, 08 Nov 2009 20:00:26 -0500

Hi, Felipe

>I am refactoring an old project to run with maven and Java EE 6, but I
>touched an old problem I don't remember anymore:
>
>
>
Anything in the sever.log? Is the MDB defined through component
annotation? Do you have any library jar at root level that the ejb jar
references?

- Hong

> [exec] com.sun.enterprise.admin.cli.CommandException: remote
>failure: Exception while deploying the app :
>java.lang.IllegalArgumentException: Invalid ejb jar
>[cejug-classifieds-login-1.0-SNAPSHOT.jar]: it contains zero ejb.
> [exec] Note:
> [exec] 1. A valid ejb jar requires at least one session, entity
>(1.x/2.x style), or message driven bean.
> [exec] 2. EJB3+ entity beans (@Entity) are POJOs and please
>package them as library jar.
> [exec] 3. If the jar file contains valid EJBs which are annotated
>with EJB component level annotations (@Stateless, @Stateful,
>@MessageDriven, @Singleton), please check server.log to see whether
>the annotations were processed properly.
>
>
>what is it ?
>
>* yes, the jar contains MDBs...
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>