Hello,
I am new to
EJB and have done my first application in EJB with Eclipse and
JBoss. I have create an EJB Project in Eclipse and have writte my Stateless Session Bean, Home Interface and the Remote Interface. Then I have created a separate Dynamic Web Application in Eclipse to write the EJB Client (Client.jsp). I have included the Home and Remote Interfaces of the EJB Project in the build path of the Web application and I have put an ejb reference in the web.xml of the Web Application. Here is the web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>SampleEJBWeb</display-name>
<ejb-local-ref>
<ejb-ref-name>ejb/abc</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>SessionBeans.HomeInterface</local-home>
<local>SessionBeans.RemoteInterface</local>
<ejb-link>SampleEJB.jar#StatelessEJB</ejb-link>
</ejb-local-ref>
</web-app>
ejb/abc is my jndi name and SessionBeans.HomeInterface is the Home Interface in SessionBeans Package. Same with Remote Interface.
SampleEJB is my EJB project and StatelessEJB is my Session Bean.
Now the problem is when I try to deploy this Web Application the console shows me a Deployment exception.
java.lang.IllegalStateException: Failed to find ContainerDependencyMetaData for interface: SessionBeans.RemoteInterface
Any suggestions and help would be greatly appreciated.
Thanks,
Ramya.