我正在学习企业应用程序开发课程。我是JSF的新手。我正在尝试使用GlassFish 3.1使用JSF和Netbeans IDE部署我的应用程序。无法加载EJB模块
我得到的错误列在下面。
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.
下面是引用EJB我已经作出。
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.ejb.EJB;
@EJB
任何帮助,将不胜感激。
编辑:这是一个Java Web应用程序。
EDIT WAR文件结构TREE
- META-INF/MANIFEST.MF
- WEB-INF /类
- WEB-INF/LIB/primefaces-2.1.1.jar
- WEB-INF/web.xml中
- index.shtml
我的文件在xhtml文档中没有EJB标记。它具有下面列出的内容。
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsf/core">
邮政更多的代码和jar结构 – Ilya
似乎无法得到的目录结构为列表格式。 – jslamka