• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

NameNotFoundException- Strange

Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When i am trying to look up a bean from a stand alone environment using InitialContext.lookup("ejb/dmsrel1_0/dmsrel1_0/DMSClientHome") it is giving the following error:
Exception in thread "main" javax.naming.NameNotFoundException: Unable to resolve 'ejb.dmsrel1_0/dmsrel1_0/DMSClientHome' Resolved: '' Unresolved:'ejb' ; remaining name 'ejb.dmsrel1_0/dmsrel1_0/DMSClientHome'
at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:85)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:35)
at $Proxy0.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:341)
at javax.naming.InitialContext.lookup(InitialContext.java:345)
at TestAction.createDocuments(TestAction.java:114)
at TestAction.main(TestAction.java:142)
I dont know why "ejb/dmsrel1_0/dmsrel1_0/DMSClientHome" is converted in
Actually my code is as below :
void createCabinets()throws Exception{
Hashtable env = new Hashtable();
InitialContext initCtx = null;
initCtx = new InitialContext(env);
}catch(CommunicationException ce){
DMSClientHome home = (DMSClientHome)ic.lookup("ejb/dmsrel1_0/dmsrel1_0/DMSClientHome");
DMSClient remote = home.create();

can any one tell what might be the problem of conversion from "/" to "." in the JNDI name which i am passing..
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic