Defining web.xml with <ejb-local-ref> is not working in EAP6 and throws NameNotFoundException

Solution Verified - Updated -

Issue

  • We have a WAR File which has the tag defined in it's "web.xml" file.
 <ejb-local-ref>              
    <ejb-ref-name>ejb3/SomeService/local</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <local>foo.SomeService</local>               
 </ejb-local-ref>

In Client code we are trying to lookup the local EJB as following:

SomeService svc = (SomeService) ctx.lookup("ejb3/SomeService/local");

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.