Results 1 to 3 of 3
- 06-29-2007, 02:06 AM #1
Member
- Join Date
- Jun 2007
- Posts
- 91
- Rep Power
- 0
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:
where ejb/Hello is the ejb name in ejb-jar.xml fileJava 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");
thanks.Java 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)
DanielLast edited by Daniel; 06-29-2007 at 02:08 AM.
- 06-29-2007, 02:09 AM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 111
- Rep Power
- 0
It sounds like your JNDI may not be set up correctly. I'm totally unfamiliar with WSAD but if there is a way to first verify that your JNDI environment is correct first I'd start there.
Greetings.
Eric
- 06-29-2007, 02:12 AM #3
Member
- Join Date
- Jun 2007
- Posts
- 91
- Rep Power
- 0
Similar Threads
-
javax.microedition.io/ javax.bluetooth
By ahtiven in forum New To JavaReplies: 3Last Post: 01-13-2009, 02:54 PM -
Naming a Class
By Java Tip in forum Java TipReplies: 0Last Post: 12-22-2007, 11:21 AM -
RMI naming problem
By Robbinz in forum New To JavaReplies: 1Last Post: 12-06-2007, 11:32 PM -
Naming conventions
By Java Tip in forum Java TipReplies: 0Last Post: 12-03-2007, 09:53 AM -
error in JNDI naming
By jitendra.ibs in forum Java ServletReplies: 0Last Post: 06-08-2007, 05:23 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks