users@glassfish.java.net

Re: Deploying application in domain failed

From: <glassfish_at_javadesktop.org>
Date: Fri, 23 Apr 2010 06:21:43 PDT

For the jar which the server thinks is an invalid ejb jar, can you check the jar for the following which are stated as part the error message?
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.

Seems there might be some packaging problem with that jar file (either no class with necessary component annotation or the bean is referencing some class which is not visible to this ejb jar which caused the annotation processing to fail).

- Hong
[Message sent by forum member 'hzhang_jn']

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