Ungültige ejb-jar: es enthält null ejb.

Ich habe 2 Module: ejb und Krieg und Ohr-Modul, das Sie enthält. Module erfolgreich erstellen, aber wenn ich versuche zum bereitstellen von Ohr zu glassfish, ich erhalte diese Fehlermeldung:

glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=17;_ThreadName=Thread-2;|Exception while deploying the app [EarModule] : Invalid ejb jar [BackEnd-1.0-SNAPSHOT.jar]: it contains zero ejb. 
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, @Singleton), please check server.log to see whether the annotations were processed properly.|#]

Ich weiß wirklich nicht, was zu tun ist, ich habe eine Menge Fragen wie meine, aber es war keine Lösung.

InformationsquelleAutor Mary Ryllo | 2013-03-11
Schreibe einen Kommentar