Re: Trying to use the NameService

"Julien Regnart" <[email protected]> Thu, 16 Feb 2006 09:08:21 +0100
Newsgroups gmane.comp.corba.orbacus
Organization Cetic
Message-ID <[email protected]>
Hi Darren,

It's "better" but  I have now new errors :

org.omg.CORBA.INITIALIZE : can't instantiate default ORB implementation
com.ooc.CORBA.ORB vmc completed : No
at org.omg.CORBA.ORB.create_impl(Unknown Source)
at org.omg.CORBA.ORB.init(Unknown Source)
 at Server.main(Server.java:38)
Caused by: java.lang.ClassNotFoundException: com.ooc.CORBA.ORB
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        ... 3 more

Regards
Julien Regnart
> 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