This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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







 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems to lookup an EJB3 local stateless session bean
 
Similar Threads
Log4J created two log files but should have only done one
NamingException: Could not dereference object - EJB 3.0 workbook ex05-2
Problem with this example
ejb 3.0,jboss 4.2.2 netbeans 6.0.1
Null Pointer Exception