Am getting this problem....
while looking up using JNDI for my SessionBeans Deployed on Web Sphere Server 5.0.1,
Exception in thread "P=673986 =0:CT" javax.naming.CommunicationException: A com
munication failure occurred while attempting to obtain an initial context using
the provider url: "iiop://192.62.35.64:9080". Make sure that the host and port i
nformation is correct and that the server identified by the provider url is a ru
nning name server. If no port number is specified, the default port number 2809
is used. Other possible causes include the network environment or workstation n
etwork configuration. Root exception is org.omg.CORBA.COMM_FAILURE: purge_calls
:1186 minor code: 4942F306 completed: Maybe
at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java:1185)
at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java:2356)
at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java:138)
The server is on http://XYZ:9080
i tried all combinations for provider URL its failing
iiop:// XYZ:2809
iiop:// XYZ:9080
iiop:// localhost:2809
iiop:// localhost:9080
also IP address Combinations
can u throw some light
Also the jndi code is
InitialContextFactory c = null;
props.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
props.put(Context.PROVIDER_URL, "iiop://usres-pair.na.uis.unisys.com:2809");
Context ctx = new InitialContext(props);
System.out.println("Context is"+ctx);
//System.out.println("env ====="+ctx.getEnvironment());
//System.out.println(" ct ==== "+ctx.listBindings("/"));
Object homeObject = ctx.lookup("ejb/us/la/state/dps/omv/sessionBeans/Correspondence/CorrespondenceManagerHome");
CorrespondenceManagerHome bcHome = (CorrespondenceManagerHome) javax.rmi.PortableRemoteObject.narrow(homeObject, CorrespondenceManagerHome.class);
CorrespondenceManager bc = bcHome.create();
[ September 15, 2004: Message edited by: SunBoy Light ]
while looking up using JNDI for my SessionBeans Deployed on Web Sphere Server 5.0.1,
Exception in thread "P=673986 =0:CT" javax.naming.CommunicationException: A com
munication failure occurred while attempting to obtain an initial context using
the provider url: "iiop://192.62.35.64:9080". Make sure that the host and port i
nformation is correct and that the server identified by the provider url is a ru
nning name server. If no port number is specified, the default port number 2809
is used. Other possible causes include the network environment or workstation n
etwork configuration. Root exception is org.omg.CORBA.COMM_FAILURE: purge_calls
:1186 minor code: 4942F306 completed: Maybe
at com.ibm.rmi.iiop.Connection.purge_calls(Connection.java:1185)
at com.ibm.rmi.iiop.Connection.doReaderWorkOnce(Connection.java:2356)
at com.ibm.rmi.transport.ReaderThread.run(ReaderPoolImpl.java:138)
The server is on http://XYZ:9080
i tried all combinations for provider URL its failing
iiop:// XYZ:2809
iiop:// XYZ:9080
iiop:// localhost:2809
iiop:// localhost:9080
also IP address Combinations
can u throw some light
Also the jndi code is
InitialContextFactory c = null;
props.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
props.put(Context.PROVIDER_URL, "iiop://usres-pair.na.uis.unisys.com:2809");
Context ctx = new InitialContext(props);
System.out.println("Context is"+ctx);
//System.out.println("env ====="+ctx.getEnvironment());
//System.out.println(" ct ==== "+ctx.listBindings("/"));
Object homeObject = ctx.lookup("ejb/us/la/state/dps/omv/sessionBeans/Correspondence/CorrespondenceManagerHome");
CorrespondenceManagerHome bcHome = (CorrespondenceManagerHome) javax.rmi.PortableRemoteObject.narrow(homeObject, CorrespondenceManagerHome.class);
CorrespondenceManager bc = bcHome.create();
[ September 15, 2004: Message edited by: SunBoy Light ]