Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

websphere client problem 1

Status
Not open for further replies.

Radar31

Programmer
May 2, 2002
3
IE
Please help,
I am accessing websphere 4.0 residing on a linux 6.2 machine, from a client which is on a windows 98 machine. My client fails on getting the initial context.

Java code:
java.util.Properties p= new java.util.Properties();
p.put("java.naming.factory.initial","com.ibm.websphere.naming.WsnInitialContextFactory");
p.put("java.naming.provider.url","iiop://lxdb1:900/");
javax.naming.Context ctx= new javax.naming.InitialContext(p);

The following is the exception i get:
javax.naming.CommunicationException: Caught CORBA.COMM_FAILURE when resolving initial reference=WsnNameService. Root exception is org.omg.CORBA.COMM_FAILURE: minor code: 3 completed: No
at com.ibm.CORBA.iiop.HTTPConnection.send(HTTPConnection.java:447)
at com.ibm.CORBA.iiop.ClientRequestImpl.invoke(ClientRequestImpl.java:508)
at com.ibm.CORBA.iiop.ClientRequestImpl.reInvoke(ClientRequestImpl.java:741)
at com.ibm.CORBA.iiop.ClientRequestImpl.reInvoke(ClientRequestImpl.java:863)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:894)
at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:409)
at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:250)
at com.ibm.WsnBootstrap._WsnNameServiceStub.getProperties(_WsnNameServiceStub.java:37)
at com.ibm.ws.naming.util.WsnInitCtxFactory.mergeWsnNSProperties(WsnInitCtxFactory.java:598)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getRootJndiContext(WsnInitCtxFactory.java:352)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:227)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:98)
at com.ibm.ws.naming.util.WsnInitCtx.<init>(WsnInitCtx.java:79)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContext(WsnInitCtxFactory.java:135)
at com.ibm.websphere.naming.WsnInitialContextFactory.getInitialContext(WsnInitialContextFactory.java:80)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:669)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:199)
at ClientMain.main(ClientMain.java:21)
 
Hi,

I assume that &quot;lxdb1&quot; is the hostname of the Linux Server and that in the admin.config the LSDPort is not mentioned (therefore it defaults to 900). If so then check that you can ping the hostname and it is not just a case of hostname resolution. If you can't then either change the code to read the IP of the server or add an entry to your hosts file on the 98 Machine.

Fearo
 
Thanks fearo, I changed the hosts file on the linux machine, and everything worked. Cheers!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top