users@glassfish.java.net

A valid ejb jar requires at least one session, entity (1.x/2.x style), or..

From: <glassfish_at_javadesktop.org>
Date: Wed, 09 Jul 2008 01:33:00 PDT

Hi.

I am trying to deploy an ejb3.0 myeclipse project to the glassfish application server (Sun Java System Application Server 9.1_02 (build b04-fcs)). The project contains exactly one stateful session bean (annotated with @Stateful)
I tried to deploy the project within eclipse and ant as well and glassfish keeps telling me this:

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.
        at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:95)
        at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:729)
        at com.sun.enterprise.deployment.archivist.EjbArchivist.validate(EjbArchivist.java:190)
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:790)
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:744)
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:349)
        ... 32 more

I don't know where the problem is and why glassfish cannot find my bean.
I am running the appserver with Java6 and I also compile the program with Java6.
I would appreciate any hint!

Richard
[Message sent by forum member 'youngzaphod' (youngzaphod)]

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