aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Problems to lookup an EJB3 local stateless session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problems to lookup an EJB3 local stateless session bean" Watch "Problems to lookup an EJB3 local stateless session bean" New topic
Author

Problems to lookup an EJB3 local stateless session bean

Giampaolo Franco
Greenhorn

Joined: Oct 21, 2011
Posts: 1
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)
| | +- local-crash.session.email.EmailIncidenteBeanLocal (class: Proxy for: crash.session.email.EmailIncidenteBeanLocal)
| | +- local (class: Proxy for: crash.session.email.EmailIncidenteBeanLocal)


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 crash.session.email.EmailIncidenteBean not found.

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







 
jQuery in Action, 2nd edition
 
subject: Problems to lookup an EJB3 local stateless session bean