Unable to load EJB-Modul

Nehme ich einen Kurs in der Entwicklung von Unternehmensanwendungen. Ich bin neu in JSF. Ich bin versucht, die Bereitstellung meiner-app mit Glassfish 3.1 mit JSF und Netbeans IDE.

Den Fehler den ich bekomme, ist unten aufgelistet.

Error occurred during deployment: Exception while preparing the app : Unable to load the EJB module. DeploymentContext does not contain any EJB. Check the archive to ensure correct packaging for F:\Seagate\docs backup\NetBeansProjects\ent-app-dev\Slamka_Project1\build\web.
If you use EJB component annotations to define the EJB, and an ejb or web deployment descriptor is also used, please make sure that the deployment descriptor references a Java EE 5 or higher version schema, and that the metadata-complete attribute is not set to true, so the component annotations can be processed as expected. Please see server.log for more details.

Unten sind die Referenzen der EJB habe ich gemacht.

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.ejb.EJB;
@EJB

Jede mögliche Hilfe würde geschätzt.

EDIT: Dies ist ein Java-Web-Anwendung.

BEARBEITEN
WAR-DATEI BAUMSTRUKTUR

  • META-INF/MANIFEST.MF
  • WEB-INF/classes
  • WEB-INF/lib/primefaces-2.1.1.jar
  • WEB-INF/web.xml
  • index.shtml

Meine Datei nicht über ein EJB-Tags in den xhtml-Dokument. es hat was, ist unten aufgelistet.

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:c="http://java.sun.com/jsf/core">

  • Poste mehr code und jar-Struktur
  • Kann nicht scheinen, um die directory-Struktur in einer Liste format.
InformationsquelleAutor jslamka | 2012-09-13
Schreibe einen Kommentar