users@glassfish.java.net

Problem

From: Ronaldo Rigoni ... <rrigoni_at_gmail.com>
Date: Fri, 24 Apr 2009 14:33:28 -0300

I have created a default java project and add him in the classpath of my
ejb-project and in my-war-project.
In the deploy of ear( war, ejb) application i recieve the error below:

[exec] CLI171 Command deploy failed : Deploying application in domain
failed; Error loading deployment descriptors for module [sbe-ear] -- Invalid
ejb jar [sbe-webservice.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),
please check server.log to see whether the annotations were processed
properly.


My project is configured:
META-INF/application-client.xml

If the jar is only a jar library, because the container request is contains
a anyone EJB?

The configuration files is:

In the project client.

<application-client ...>
  <display-name>sbe-client</display-name>
</application-client>

In the EJB project:
<ejb-jar ...>
  <display-name>sbe-ejb</display-name>
</ejb-jar>

<sun-ejb-jar>
  <enterprise-beans/>
</sun-ejb-jar>

EAR Desriptor:

<application>
  <display-name>sbe-ear</display-name>
  <module>
    <ejb>sbe-ejb.jar</ejb>
  </module>
<module>
    <web>
      <web-uri>sbe-war.war</web-uri>
      <context-root>sbe</context-root>
    </web>
  </module>
</application>



Can anyone help?

Regards

-- 
[]'s,
Ronaldo Rigoni
Desenvolvedor JEE
Ministério da Educação -  CESPE