Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NameNotFoundException- Strange  RSS feed

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(
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(
at weblogic.rmi.internal.ProxyStub.invoke(
at $Proxy0.lookup(Unknown Source)
at weblogic.jndi.internal.WLContextImpl.lookup(
at javax.naming.InitialContext.lookup(
at TestAction.createDocuments(
at TestAction.main(
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
Boost this thread!