All,
I am attempting to follow a simple Java/Corba tutorial.
However, when attempting to start the Server.java program I always run into the following error:
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 900" org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No . . . Caused by: java.net.ConnectException: Connection refused: connect
I realize this has been posted before. However, I am completely new to CORBA and am at a loss as to how to correct the error.
Here is the snippet, in Server.java, that is throwing the error:
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
I can start the ORBD by using this command: orbd -ORBInitialPort 1050 -ORBInitialHost localhost
I can also start tnameserver by using this command: start tnameserv -ORBInitialPort 1051
However, that is as far as I understand about how to correct.
Any help appreciated.
Thanks
orbd -ORBInitialPort 1050 -ORBInitialHost localhost -- starts without exception
start tnameserv -ORBInitialPort 1051 -- starts without exception
java Server ORBInitialPort 1050 -ORBInitialHost localhost -- throws connection refused exception...
I figured out the solution!
I had to specifically start all three objects, orbd, server and client indicating to only use IPV4: