Sto frequentando un corso in Enterprise Application Development. Sono nuovo di JSF. Sto provando a distribuire la mia app usando Glassfish 3.1 usando JSF e Netbeans IDE.Impossibile caricare il modulo EJB
L'errore che ottengo è elencato di seguito.
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.
Qui di seguito sono i riferimenti per EJB ho fatto.
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.ejb.EJB;
@EJB
Qualsiasi aiuto sarebbe apprezzato.
MODIFICA: Questa è un'applicazione Web Java.
EDIT GUERRA FILE struttura ad albero
- META-INF/MANIFEST.MF
- WEB-INF/classes
- WEB-INF/lib/primefaces-2.1.1.jar
- WEB-INF/web.xml
- index.shtml
Il mio file non ha un tag EJB nel documento xhtml. ha ciò che è elencato di seguito.
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsf/core">
postale più codice e vaso struttura – Ilya
non riesco a ottenere la struttura di directory in un formato lista. – jslamka