wood burning stoves*
The moose likes JBoss/WildFly and the fly likes lookup of JNDI bean reference is not working! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "lookup of JNDI bean reference is not working! " Watch "lookup of JNDI bean reference is not working! " New topic
Author

lookup of JNDI bean reference is not working!

yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
hello all!

I am little bit confused about the JNDI look up with JBOSS 6 as the Application server.

To get the bean's home stub, I write the code like,



jboss.xml has something like,



ejb-jar.xml contains,



If i print "objref ", it displays "null".

please let me know the problem in this!

Thank You!
yuvaraj KumarAmudhan
Ranch Hand

Joined: Aug 22, 2009
Posts: 110
please somebody reply this post!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

Are you sure you are getting a NULL? I would have expected a NameNotFoundException if you are using the wrong JNDI name. Are you packaging any jar file(s) containing javax.naming.* or org.jnp.* classes in your application? Or maybe other JBoss specific jar files? If yes, then remove those from your application.

[My Blog] [JavaRanch Journal]
 
GeeCON Prague 2014
 
subject: lookup of JNDI bean reference is not working!