I hope to get some help on this strange problem. We are launching the Jacorb name server, and I have a simple client that I use to try to connect and make awesome CORBA voodoo. The name server is running, but when I try to start the java application, I get "Connection failure" error (org.omg.CORBA.COMM_FAILURE, minor code 201, "caused by java.net.ConnectionException: Connection refused: connect").
Here's the weird part. The error reports that it is trying to connect using the default port of 900, but I am passing an argument to try to redefine the name service port number according to the one used by the name server. My java command looks like this:
java -classpath . HelloClient -Djava.endorsed.dirs="bla bla bla" <br>
-Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
-Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton
-DORBInitRef.NameService=corbaloc::localhost:2809/StandardNS/NameServer-POA/_root
I also tried the parameters without the first capital D (I saw this in both directions, and I do not know the difference).
Now, if I put in -ORBInitialPort 2809, then the client is really trying to connect, but then I get an error corba.OBJECT_NOT_EXIST.
I could use any help or advice anyone has.
source
share