• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NameNotFoundException- Strange

sathish kannan
Posts: 29
  • Mark post as helpful
  • send pies
  • 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..
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic