File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 10289
    
168

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