View Single Post
  #1 (permalink)  
Old 06-29-2007, 03:06 AM
Daniel Daniel is offline
Member
 
Join Date: Jun 2007
Posts: 92
Daniel is on a distinguished road
javax.naming.NameNotFoundException: ejb/RatingEJB
Hi, Iam using the following code to access the ejb from my jsp.
And iam getting an error. My environment is wsad5.1 + jsp + j2ee 1.3.
My jsp code is:
Code:
Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsInitialContextFactory"); env.put(Context.PROVIDER_URL, "iiop://localhost:9081"); Context context = new InitialContext(env); home = context.lookup("ejb/Hello");
where ejb/Hello is the ejb name in ejb-jar.xml file
Code:
[Servlet Error]-[ejb/RatingEJB]: javax.naming.NameNotFoundException: ejb/RatingEJB. Root exception is org.omg.CosNaming.NamingContextPackage.NotFound at com.ibm.ws.naming.ipcos.WsnOptimizedNamingImpl.do_resolve_complete_info(WsnOptimizedNamingImpl.java:964)
thanks.

Daniel

Last edited by Daniel : 06-29-2007 at 03:08 AM.
Reply With Quote
Sponsored Links