• Post Reply Bookmark Topic Watch Topic
  • New Topic

"javax.naming.LinkException" while getting local interface  RSS feed

 
Vikas Kumar Sahu
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am trying to access local interface of my ejb at the weblogic server.
I am accesing this ejb from the MDB.
The following exception is comming :

javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: remaining name: /app/ejb/taskmgmt.jar#TaskManagement/local-home]; Link Remaining Name: 'java:app/ejb/taskmgmt.jar#TaskManagement/local-home'
at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:9 8)
at weblogic.jndi.internal.ServerNamingNode.resolveObject(ServerNamingNode.java:292 )
at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:771)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:191)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:256)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:357)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at com.sisl.snms.server.common.LocalEJBGetter.getLocalHome(LocalEJBGetter.java:49)
at com.sisl.snms.server.common.LocalEJBGetter.getRemoteInterface(LocalEJBGetter.ja va:29)
at com.sisl.snms.server.cm.CMLocalInterfaceGetter.getLocalTaskManagementRemoteInte rface(CMLocalInterfaceGetter.java:34)
*******obj[0]=Tue May 24 14:07:50 IST 2005 at com.sisl.snms.client.cm.taskmanagement.gui.PrivateTaskManager.deleteUserAndItsA ssociatedOp(PrivateTaskManager.java:333)


BR -
Vikas Kumar Sahu
 
Dushy Inguva
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vikas,

Your root exception is javax.naming.NameNotFoundException, this definitely means one of these is true:
1. The bean is not bound with the name you are looking with
2. You are not looking up with the correct path

I do not know how to lookup the JNDI context tree in weblogic, but im assuming there will be a utility supplied with weblogic (Websphere has Universal Test Client) that will let u browse the JNDI tree to find the correct path.

Also, try with both java:comp/env/ejb/... and ejb/... it depends on whether you are using local references or not.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!