This week's book giveaway is in the Testing forum.
We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line!
See this thread for details.
Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems to lookup an EJB3 local stateless session bean

Giampaolo Franco
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, it's very nice for me writing my first topic on this forum! I'm adding an EJB3.0 business logic layer to an existing application that use Struts2 and Hibernate3.
I create on NetBeans an enterprise application named Crash (Crash-ejb + Crash-war).

My first goal was to develop a Local Stateless EJB. This is the local interface:

...and this the implementation

My client is on a Struts2 action, in the same application :

I build the application and deploy correctly on AS JBoss 5.1.0. On JMX console I can see that EJB is inside the Global JNDI Namespace:

Global JNDI Namespace
+- Crash (class: org.jnp.interfaces.NamingContext)
| +- EmailIncidenteBean (class: org.jnp.interfaces.NamingContext)
| | +- (class: Proxy for:
| | +- local (class: Proxy for:

here the details of EJB:
java:comp namespace of the component jboss.j2ee:ear=Crash.ear,jar=Crash-ejb.jar,name=EmailIncidenteBean,service=EJB3 :
+- EJBContext (class: javax.ejb.EJBContext)
+- TransactionSynchronizationRegistry[link -> java:TransactionSynchronizationRegistry] (class: javax.naming.LinkRef)
+- UserTransaction (class: org.jboss.ejb3.tx.UserTransactionImpl)
+- env (class: org.jnp.interfaces.NamingContext)
+- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)

I'm trying to execute the action to lookup the EJB EmailIncidenteBean but always I've this Exception:

javax.naming.NameNotFoundException not found.

Did I miss something?
Please, can anybody help?
Thank you.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic