Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Murach's Java Servlets and JSP this week in the Servlets 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: 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

Joined: Jul 20, 2005
Posts: 9930

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

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