Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to load EJB module
    text
    copied!<p>I am taking a course in Enterprise Application Development. I am new to JSF. I am trying to deploy my app using Glassfish 3.1 using JSF and Netbeans IDE. </p> <p>The error I get is listed below.</p> <p><code>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.</code></p> <p>Below are the references to EJB I have made.</p> <pre><code>import javax.ejb.LocalBean; import javax.ejb.Stateless; import javax.ejb.EJB; @EJB </code></pre> <p>Any help would be appreciated.</p> <p>EDIT: This is a Java Web Application.</p> <p><strong>EDIT</strong> WAR FILE STRUCTURE TREE</p> <ul> <li>META-INF/MANIFEST.MF</li> <li>WEB-INF/classes</li> <li>WEB-INF/lib/primefaces-2.1.1.jar</li> <li>WEB-INF/web.xml</li> <li>index.shtml</li> </ul> <p>My file does not have an EJB tag in teh xhtml document. it has what is listed below.</p> <p><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:c="http://java.sun.com/jsf/core"&gt;</code></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload