Please help.
I've spent two days trying to get a JSP Page to access a local interface for an EJB. im using Jboss2.4.4. Catalina 4.x and apache 1.3
I have an EAR file , the ear file has a .jar file with the EJB's and a WAR file with the servlets.
the ejb-jar.xml file in the EJB's JAR has:
.....
<ejb-local-ref>
<ejb-ref-name>PageServiceLocal</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>salsa.twist.entitys.page.PageServiceLocalHome</local-home>
salsa.twist.entitys.page.PageServiceLocal
<ejb-link>PageService</ejb-link>
</ejb-local-ref>
.....
the web.xml file in the WAR package has:
<ejb-local-ref>
<ejb-ref-name>PageServiceLocal</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local-home>salsa.twist.entitys.page.PageServiceLocalHome</local-home>
salsa.twist.entitys.page.PageServiceLocal
<ejb-link>PageService</ejb-link>
</ejb-local-ref>
(same as the ejb-jar)
I've tried adding a <local-jndi-name> in the jboss.xml file as well as the jboss-web.xml file. and i am unable to lookup the entity.
Jboss .xml looks like:
<enterprise-beans>
<ejb-name>PageService</ejb-name>
<local-jndi-name>PageServiceLocal</local-jndi-name>
</enterprise-beans>
jboss-web.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<!-- A reference to an EJB in the same server with a custom JNDI binding -->
<ejb-local-ref>
<ejb-ref-name>PageServiceLocal</ejb-ref-name>
<local-jndi-name>PageServiceLocal</local-jndi-name>
</ejb-local-ref>
</jboss-web>
i've tried looking up with java:comp/env/PageServiceLocal , java:comp/PageServicLocal and ALL combinations of env/local , env/ejb/local with and without the java:comp preceeding it.
After 48 hours of being unable to access all this and not finding anything useful in the forums, i tried to configure Jboss3......dont ask what happened then. Any help on this issue would be greatly appreciated. Actual code from source that works would be divine.