javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/HelloBeanLocal in JBoss EAP 6

Solution Verified - Updated -

Issue

  • We are seeing this error when our EJB client tries to lookup our EJB's local interface :
javax.naming.NameNotFoundException: No object bound for java:comp/env/ejb/HelloBeanLocal    
  at com.jboss.examples.ejb.HelloBeanUtil.createLocalHome(HelloBeanUtil.java:95)    
  at com.jboss.examples.ejb.HelloBeanUtil.getLocal(HelloBeanUtil.java:133)  
  at com.jboss.examples.ejb.HelloBeanUtil.hello(HelloBeanUtil.java:242) 
  at com.jboss.examples.ejb.client.TestBean.hello(TestBean:30)

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content