run Client and the server on two different machine!! it doesen't work!!  
Author Message
Tina





PostPosted: 2005-7-8 0:47:00 Top

java-programmer, run Client and the server on two different machine!! it doesen't work!! Hi,
I am trying to execute my Corba/Java program with the Client on one
machine and the server on another (things work
fine on a single machine).
-------------------------------------
- tnameserv -ORBInitialPort 1500

- java Server -ORBInitialPort 1500 -ORBInitialHost htest

- java Client -ORBInitialPort 1500 -ORBInitialHost htest
----------------
I've tried running tnameserv on the server only."htest" is the
servermachinename!!

But any attempt to use the name service results in the error :

org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed:
No
at
com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
at
com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
at
com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
at
com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
at
com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
at
com.sun.corba.se.internal.corba.ClientDelegate.request(ClientDelegate.java:886)
at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
at
org.omg.CosNaming._NamingContextExtStub.resolve_str(_NamingContextExtStub.java:156)
at Test.Client.main(Client.java:48)


Any ideas on what is missing??????

thanks
Tina

 
Developper





PostPosted: 2005-7-9 20:02:00 Top

java-programmer >> run Client and the server on two different machine!! it doesen't work!! Tina schreef:
> Hi,
> I am trying to execute my Corba/Java program with the Client on one
> machine and the server on another (things work
> fine on a single machine).
> -------------------------------------
> - tnameserv -ORBInitialPort 1500
>
> - java Server -ORBInitialPort 1500 -ORBInitialHost htest
>
> - java Client -ORBInitialPort 1500 -ORBInitialHost htest
> ----------------
> I've tried running tnameserv on the server only."htest" is the
> servermachinename!!
>
> But any attempt to use the name service results in the error :
>
> org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
> org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed:
> No
> at
> com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:148)
> at
> com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
> at
> com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
> at
> com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
> at
> com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
> at
> com.sun.corba.se.internal.corba.ClientDelegate.request(ClientDelegate.java:886)
> at org.omg.CORBA.portable.ObjectImpl._request(ObjectImpl.java:431)
> at
> org.omg.CosNaming._NamingContextExtStub.resolve_str(_NamingContextExtStub.java:156)
> at Test.Client.main(Client.java:48)
>
>
> Any ideas on what is missing??????
>
> thanks
> Tina
>
Hi,

Are you passing the arguments -ORBInitialHost htest -ORBINitialPort 1500
to the corba initializtion ?

Have you looked at the config file for the naming service on the client
side. The InitRef must point to the htest machine if the naming service
is running on that side.

It looks good what you are doing.

Johan