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 javax.naming.NameNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.naming.NameNotFoundException" Watch "javax.naming.NameNotFoundException" New topic


Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 482
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

Joined: Jul 20, 2005
Posts: 10441

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: 482
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

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: 482
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:
subject: javax.naming.NameNotFoundException
It's not a secret anymore!