[omniORB] Naming Service problem

Brecht Vermeulen brecht.vermeulen@rug.ac.be
Wed, 16 Jan 2002 14:29:38 +0100


Hi,

as far as I understood, you have put both the NAMESERVICE IOR:... and
the ORBInitialPort in omniorb.cfg (or omniORB.cfg as you have specified
it 2 times in different capitals).

Normally it is enough to put, OR
ORBInitialHost hostname
ORBInitialPort
12345                                                         

OR
NAMESERVICE IOR:.....iorstring....

in the /etc/omniorb.cfg   (OR /etc/omniORB.cfg file according to how
omniORB was compiled).

regards,
Brecht

Himanshu Cabra wrote:
> 
> Hi,
> 
> I am trying to run the naming service example from omniORB doc: eg3_impl.cc
> & eg3_clt.cc The naming service starts properly but the server cannot detect
> the naming service. When I run eg3_impl I get the following error message:
> Configuration error: Invalid object reference supplied for NAMESERVICE.
> Abort
> 
> I have followed the below procedure:
> 
> I have started the naming service by the following command:
> omniNames -start 12345
> 
> This starts the naming service properly and shows the following information
> on the console.
> Wed Jan 16 15:42:12 2002:
> 
> Starting omniNames for the first time.
> Wrote initial log file.
> Read log file successfully.
> Root context is
> IOR:010000002800000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e6
> 7436f6e746578743a312e3000010000000000000028000000010100000d00000031302e31323
> 52e35302e373200
> 0039300c0000003c4520c41e7e93cd00000002
> Checkpointing Phase 1: Prepare.
> Checkpointing Phase 2: Commit.
> Checkpointing completed.
> 
> I have copied the root context IOR which I got after starting the naming
> service in the omniORB.cfg file as:
> 
> NAMESERVICE
> IOR:010000002800000049444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67
> 436
> f6e746578743a312e3000010000000000000028000000010100000d00000031302e3132352e3
> 5302e3732000039
> 300c0000003c4520c41e7e93cd00000002
> 
> The portno. in the /etc/omniorb.cfg file is also:
> ORBInitialPort 12345
> 
> I have followed all the instructions of the manual, but still the problem is
> there.
> 
> I am very confused as the same IOR is working very fine with the nameclt
> utility.
> 
> Could anyone please advise me, where I am wrong or which portion I am
> missing.
> 
> Thanks a lot for your time.
> 
> Regards,
> Himanshu Cabra
> Software Engineer,
> Motech Software Pvt. Ltd.
> 
> **************************************************************************************************************************************
> This email is intended solely for individual/entity named above, and may contain confidential and/or privileged information
> of the sender. Any unauthorized and wrongful access or use of the same by person other than addressee is strictly
> prohibited and shall make that person liable for legal consequences as per the applicable laws.
> In case of receipt of this email by error, please delete the same and notify the sender immediately.
> The contents of this email may not truly reflect the business and affairs of MoTech and the same should not be
> treated as an opinion, suggestion or advice in any way. MoTech disclaims all responsibilities/liabilities with
> regard to contents of this email.
> © MoTech Software Pvt. Ltd 2002