File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Exception in thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Exception in thread "main" javax.naming.NameNotFoundException: Greeter not bound" Watch "Exception in thread "main" javax.naming.NameNotFoundException: Greeter not bound" New topic
Author

Exception in thread "main" javax.naming.NameNotFoundException: Greeter not bound

Clinton Morrison
Greenhorn

Joined: Jun 28, 2007
Posts: 24
I am trying to run the client below, but I am receiving the following error Exception in thread "main" javax.naming.NameNotFoundException: Greeter not bound. I have also tried using java:Greeter/remote and having a @EJB private static Greeter greeter variable. When I check the jmx-console I see the GreeterBean is bound. I am not sure where I am going wrong. I am running JBoss 5 and java 6. Is there another way to call the EJB?





jmx-console
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9318
    
109

Looking at the JNDIView output you posted, the jndi name you should be using is:



By the way, please use code block to enclose the JNDIView output or any similar log/xml/code. I have fixed your post for now.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in thread "main" javax.naming.NameNotFoundException: Greeter not bound
 
Similar Threads
Issue Whie Deploying EJB on JBoss AS 5.1.0...
EJB 3 and Jboss integration with struts 2
javax.naming.NameNotFoundException: TransactionManager not bound
purpose of InitialContext?
javax.naming.NameNotFoundException: HelloBean not bound