Re: Trying to use the NameService

Darren Middleman <[email protected]> Wed, 15 Feb 2006 10:14:43 -0330
Newsgroups gmane.comp.corba.orbacus
Organization IONA | Making Software Work Together TM
Message-ID <[email protected]>
Hi Julien,

>    I'm trying to launch the NameService's demo (/naming/demo/). I look in the
>    User guide but I can't find the way to lunch it.
>    I launch the nameservice :
>    java -Xbootclasspath/p:%naming% com.ooc.CosNaming.Server -ORBconfig
>    l:\name.conf
>     
>    where naming is set to the path of OB.jar and OBNaming.jar
>     
>    name.conf contains it:
>    corbaloc::pt-mda.cetic.be:7000/NameService
>    after I launch the Server :
>    java java -Xbootclasspath/p:OB.jar;OBNaming.jar Server -ORBInitRef
>    NameService =corbaloc::pt-mda.cetic.be:7000/NameService
>    errors are :
>    ORB.init : invalid value for -ORBInitRef
>    org.omg.CORBA.INITIALIZE : vmcid : 0x0 minor code : 0 completed : No
>                    at com.ooc.OBCORBA.ORB_impl.ParseArgs(ORB_impl.java :
>    1888)
>                    at com.ooc.OBCORBA.ORB_impl.setParameters(ORB_impl.java :
>    942)
>                    at com.ooc.OBCORBA.ORB_impl.set_parameters(ORB_impl.java :
>    1611)
>                    at org.omg.CORBA.ORB.init(ORB.java :337)
>                at Server.main (Server.java :38)

I think the issue you are seeing here is caused by the space that you have
after NameService but before the '=' in your command line.  Your string
for the -ORBInitRef should look like this:

  -ORBInitRef NameService=corbaloc::pt-mda.cetic.be:7000/NameService

Regards,
Darren

-- 
Darren Middleman, Software Engineer
Team Orbacus - Your CORBA Source
Email: mailto:[email protected]
WWW: http://www.orbacus.com/
_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html