my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes JNDI not bound for EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JNDI not bound for EJB" Watch "JNDI not bound for EJB" New topic
Author

JNDI not bound for EJB

rajareddya reddy
Ranch Hand

Joined: Jul 23, 2011
Posts: 49
I am getting JNDI not bound for EJB when I deployed in JBoss 5.








java code I am using for accesing EJB
---------------------------------------------

removing java:comp/env also tried,still I am getting Exception as follows




Please suggest solution?
everson santos
Ranch Hand

Joined: Jul 11, 2009
Posts: 50

i think the problem is here:
ctx.lookup("java:comp/env/ejb/mhbAdapterrel1_0/mhbAdapterApprel1_0/ProfileSLHome");



try to look when jboss is starting the right jndi name for your ejb.. you can looking for "ProfileSLHome"

I have as below with ejb3:
22:48:25,730 INFO [JBossASKernel] and supplies:
22:48:25,730 INFO [JBossASKernel] jndi:feijaoEAR/MeuFeijao/remote
22:48:25,730 INFO [JBossASKernel] jndi:feijaoEAR/MeuFeijao/local-br.feijao.ejb.MeuFeijaoLocal
22:48:25,730 INFO [JBossASKernel] jndi:feijaoEAR/MeuFeijao/local
22:48:25,730 INFO [JBossASKernel] Class:br.feijao.ejb.MeuFeijaoLocal
ctx.lookup("feijaoEAR/MeuFeijao/local")

Cainiao Zou
Ranch Hand

Joined: Mar 03, 2009
Posts: 36
take a look at the jndi-viewer in jmx console. it's a very handy tool in jboss. just type http://localhost:8080 in browser and you can find it in menu.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JNDI not bound for EJB
 
Similar Threads
jsf tutorial
HTTP 404 error on migrating : JBOSS EAP 5.1 and SEAM 2.2
unable to connect project to database
JSP not picking up getAttribute from Servlet
web.xml