Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax. naming. NameNotFoundException

 
Ravinder S Edhan
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which server are you using?
 
Ravinder S Edhan
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Weblogic 8.1 server.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done. Glad you sorted it.
 
Ravinder S Edhan
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the appreciation PAUL

Cheers
Ravinder S Edhan
SCJP 1.4
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic