Ich mache einen Kurs in Enterprise Application Development. Ich bin neu in JSF. Ich versuche, meine App mithilfe von Glassfish 3.1 mithilfe von JSF und Netbeans IDE bereitzustellen.EJB-Modul konnte nicht geladen werden
Der Fehler, den ich bekomme, ist unten aufgeführt.
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.
Im Folgenden sind die Referenzen, die ich EJB gemacht haben.
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.ejb.EJB;
@EJB
Jede Hilfe wäre willkommen.
EDIT: Dies ist eine Java Web Application.
EDIT 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 hat kein EJB-Tag im XHTML-Dokument. Es hat, was unten aufgeführt ist.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsf/core">
Beitrag mehr Code und Glas Struktur – Ilya
nicht scheinen, kann die Verzeichnisstruktur in einem Listenformat zu erhalten. – jslamka