File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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

JNDI not bound for EJB

rajareddya reddy
Ranch Hand

Joined: Jul 23, 2011
Posts: 61
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:

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

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.
Don't get me started about those stupid light bulbs.
subject: JNDI not bound for EJB
It's not a secret anymore!