Hi,
I’m new at myEclispe and J2EE. Here is my problem:
I created a simple Enterprise Application Project with an EJB and WEB-Project using JSF. The EJB contains only a class that validates an user login. I developed a TestClient within the EJB and everthing works fine. Now I’m going to call this validateClass from my WEB Module. The result is an Error message from the AppServer (JBoss 4.0): “… ValidateLoginHome not bound…”. I see that in my web.xml should be an entry for the JNDI name, but there are only some entries for JSF as shown below.
So, what can I do to solve this problem and what is the best practise to solve such problems.
Best wishes from Cologne
Michael
<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app xmlns=”http://java.sun.com/xml/ns/j2ee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” version=”2.4″ xsi:schemaLocation=”http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd”>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>
</web-app>