[omniORB] RE: Exception thrown when calling resolve_initial_references

Duncan Grisby dgrisby@uk.research.att.com
Mon, 07 Aug 2000 17:47:58 +0100


On Monday 7 August, Byerly_John wrote:

> I tried launching omniORB on my machine (PARADISE, an NT workstation in a
> workgroup) with the following argument list
> 
> 	omniNames -start 1570 -logdir C:\OmniNames -ORBInitRef
> NameService=corbaname::PARADISE
> 
> and got the following error
> 
> 	C:\>omninames -start 1570 -logdir C:\omninames -ORBInitRef
> corbaname::PARADISE
> 	omniORB: CORBA::ORB_init failed: invalid -ORBInitRef parameter
> `corbaname::PARADISE'.

The second time you give the command line above, you've missed out the
"NameService=" bit, which is the cause of the error message. That
said, you don't need to give the -ORBInitRef argument to omniNames at
all -- that is used to tell _other_ programs where to find omniNames.
omniNames knows where to find itself.

The fact that you are giving a port number to "omniNames -start" means
that when you want to point other programs to it, you have to give the
port number, for example:

  eg3_impl -ORBInitRef NameService=corbaname::PARADISE:1570

If you just say "omniNames -start" without the port number, it uses
the default port of 2809, so you can just use:

  eg3_impl -ORBInitRef NameService=corbaname::PARADISE

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --