• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

"javax.naming.LinkException" while getting local interface

Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic