-
1. Re: does JBoss support ejb-local-ref in web.xml?
ra9114 Aug 23, 2002 1:51 AM (in response to chumps)Hi,
Even i am getting the same Exception while deploying.
I am using the local interfaces.
If u have found the solution , pl let us know .
Thanks -
2. Re: does JBoss support ejb-local-ref in web.xml?
apanchal74 Sep 16, 2002 8:23 AM (in response to chumps)I am alos facing the same problem please let me know if u got solution
-
3. Re: does JBoss support ejb-local-ref in web.xml?
adrian.brock Sep 16, 2002 9:20 AM (in response to chumps)ejb-local-ref only works when the .war and target
ejb are in the same ear.
Regards,
Adrian -
4. Re: does JBoss support ejb-local-ref in web.xml?
runeteigen Sep 17, 2002 4:10 AM (in response to chumps)I assume you are using JBoss 3.x.
Sun's DTD for web.xml says that you may specify the jar-file of the EJB in the ejb-link element. The path of the jar should be relative to the war-file. In this case your ejb-link might look like this:
<ejb-link>canliidb.jar#CanliiPublicationBrokerEJB</ejb-link>
I do not now whether this is supported on JBoss. (Probably not according to the above replay.)
I do have it working with the war and jar packaged together in an ear-file, though. In this case the reference to the jar-file in the ejb-link is not supported ('canliidb.jar#').
My ear contains SomeEJBs.jar and TheWebApp.war on the same level in the ear. The application.xml looks like this:
SomeEJBs.jar
<web-uri>TheWebApp.war</web-uri>
<context-root>/</context-root>
My ejb-link elements in web.xml refer directly to the ejb-names of the ejb-jar.xml. -
5. Re: does JBoss support ejb-local-ref in web.xml?
runeteigen Sep 17, 2002 4:17 AM (in response to chumps)Just a thought: Is is possible to use the same name of the ejb-ref (as defined by ejb-ref-name element) as that of your bean (ejb-link element)? The DTD says that ejb-ref-name must be unique within the web-application. It is also recommended to prefix it with 'ejb/'.