Forums Register Login

JNDI not bound for EJB

+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send

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")

+Pie Number of slices to send: Send
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.
Pay attention! Tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1422 times.
Similar Threads
jsf tutorial
JSP not picking up getAttribute from Servlet
HTTP 404 error on migrating : JBOSS EAP 5.1 and SEAM 2.2
Tomcat 6 to Tomcat 7 upgradation
unable to connect project to database
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:19:26.