I am trying to create a stateless session bean. When I run the client, I am getting the following exception. Can anyone help me out please.
javax.naming.NameNotFoundException: Unable to resolve test. Resolved:'' Unresolved:'test' ; remaining name ''
at $Proxy0.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)
Thanks in advance
A few questions
What are you trying to resolve?
If its a bean I'd expect code like (for Websphere)
Properties p = new Properties();
//The JNDI properties you set depend
//on which server you are using.
InitialContext ic = new InitialContext(p);
Object objRef = ic.lookup("ejb/com/company/Mybean");
javax.ejb.EJBHome objHome = (javax.ejb.EJBHome)
Have you configured your server with the corresponsing JNDI entries for the bean or whatever else you are looking up?
Which application server are you using ?
I was able to find out the problem. Thanks for the response.
Am facing the same problem, could you please let me know of the exact problem because of which this is happening, and what was done to fix it.