aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes javax. naming. NameNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax. naming. NameNotFoundException" Watch "javax. naming. NameNotFoundException" New topic
Author

javax. naming. NameNotFoundException

Ravinder S Edhan
Ranch Hand

Joined: Dec 15, 2003
Posts: 57
I'm getting the following error .... while executing the client.

"javax. naming. NameNotFoundException : Unable to resolve 'BonusHome' Resolved ; remaining name 'BonusHome'"

on the server

How could I solve this error. The JNDI name are same as the bean name.

Thanks
Ravinder
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Which server are you using?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ravinder S Edhan
Ranch Hand

Joined: Dec 15, 2003
Posts: 57
I'm using Weblogic 8.1 server.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You can look at the JNDI tree with the Admin Console (there's a "View JNDI Tree" link from a server instance I think). Check the object is bound, and its bound with the name you expect it to be bound with.
Ravinder S Edhan
Ranch Hand

Joined: Dec 15, 2003
Posts: 57
Hi,

Looking at JNDI tree, it seems that everything is perfect ... the objects are properly refering to their respective jndi. Still unable to figure out the problem.

Ravinder
Ravinder S Edhan
Ranch Hand

Joined: Dec 15, 2003
Posts: 57
Hi Paul,

Thanks for the replies. The porblem got solved. Also I got to know about the JNDI tree .... learned a new things. Thanks

Problem lies here ....

1.Object homeObjectEntity = ctx.lookup("BonusHomeEntity");

2. bonusHomeEntity = (BonusHomeEntity)PortableRemoteObject.narrow(ctx.lookup("BonusBeanEntity"),BonusHomeEntity.class);

I don't have to use the first statement ... can directly 'lookup' using second statement.

Cheers
Ravinder
[ March 07, 2005: Message edited by: Ravinder S Edhan ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Well done. Glad you sorted it.
Ravinder S Edhan
Ranch Hand

Joined: Dec 15, 2003
Posts: 57
Thanks for the appreciation PAUL

Cheers
Ravinder S Edhan
SCJP 1.4
 
 
subject: javax. naming. NameNotFoundException