This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 9912
    
158

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: lookup of JNDI bean reference is not working!
 
Similar Threads
What is wrong with this code?
problem in the stand alone client
Doubt in bean lookup!
JNDI referencing to JBoss
purpose of InitialContext?