It's not a secret anymore!*
The moose likes EJB and other Java EE Technologies and the fly likes NameNotfoundException in JONAS 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 "NameNotfoundException in JONAS" Watch "NameNotfoundException in JONAS" New topic
Author

NameNotfoundException in JONAS

vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Hi all

I am trying sample stateless session bean on JOnAS server.It is deployed sucessfully.But when i try to connect from stand alone java program it is throwing NameNotfoundException.

I checked in console of JOnAS the bean is available.But still why it is throwing NameNotfoundException.

I hope may be any error in client program.here is my client program



Is there any error in my properties, that i added in intial context.

Thanks in advance
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Exception thrown is client program is
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

initCtx.lookup("ejb/Sess")


Is this the jndi name of the local reference or a remote reference? The reason i ask is, you *cannot* lookup a local reference from outside the same JVM(in your case standalone application).


[My Blog] [JavaRanch Journal]
vidya sagar
Ranch Hand

Joined: Mar 02, 2005
Posts: 580
Hi jaikiran pai

Thank you for your response.It is remote reference only.

My problem is solved when i changed ejb/Sess to Sess in both client program and server xml file.
 
wood burning stoves
 
subject: NameNotfoundException in JONAS
 
Similar Threads
NameNotFoundException
NameNotFoundException
NameNotFoundException
NameNotFoundException
NameNotFoundException