This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes javax.naming.NameNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.naming.NameNotFoundException" Watch "javax.naming.NameNotFoundException" New topic
Author

javax.naming.NameNotFoundException

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hi Everyone,


I am trying to call an EJB (running on JBOSS 6.0.0-M3) from a Servlet (running on Tomcat 6.0) but i am getting the following error:



I have configured everything properly, added all the JAR's. My servlet code is:



Please help!!!
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9962
    
163

What jndi-name(s) does the JNDIView MBean from the jmx-console show for your beans? Use the list() operation on that MBean to display the JNDI tree.

[My Blog] [JavaRanch Journal]
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Well when i opened the JNDIView, and opened list(), i didn't find any JNDI Name which starts with the name of "Percentage" or should i be looking for something else. Also I found some errors, on the page as well.





rajan patil
Greenhorn

Joined: Feb 28, 2010
Posts: 3
While your application server (JBoss) getting started, you can see that your EJB getting bound to jndi name on console(or in server.log).
From exception it seems that your EJB is not registered with jndi.
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
I have finally got rid of the Naming Exceptions. But now when I run the servlet I get a whole set of other exceptions:



Even googling didn't help much on this!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.naming.NameNotFoundException
 
Similar Threads
request.getAttribute Not Displaying Anything In JSP
jboss 3.0- org/jboss/logging/Logger class where is it
JBOSS 6.0 Error While Starting Up..
please help ..... error while running program using eclipse
java.lang.NoClassDefFoundError