Re: NameService and getHostByName()
Darren Middleman <[email protected]>
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Organization | IONA | Making Software Work Together TM |
| Message-ID | <[email protected]> |
Hi Alessandro, On Thu, Dec 02, 2004 at 09:42:56AM +0000, Alessandro Villamaina wrote: > Hi all, > > I'm using OB 4.0.5 and I'm trying to start a NameService on a Liinux Gentoo box. > I would like the NameService to use numeric IP addresses only, without having > to add the IP-hostname correspondence in /etc/hosts. > > Whe I try to start the service, with: > > java -cp ./Bin/OB-0.4.5.jar:./Bin/OBNaming-0.4.5.jar:.. com.ooc.CosNaming.Server -OAnumeric -OAport 1974 -OAhost=10.107.127.143 -i > > the service fails with the following error message: > > org.omg.CORBA.COMM_FAILURE: gethostbyname() failed: java.net.UnknownHostException: gentoo8: gentoo8 vmcid: 0x4f4f0000 minor code: 14 completed: No > at com.ooc.OCI.IIOP.Acceptor_impl.<init>(Acceptor_impl.java:506) > at com.ooc.OCI.IIOP.AccFactory_impl.create_acceptor(AccFactory_impl.java:158) > at com.ooc.OBPortableServer.POAManagerFactory_impl.create_poa_manager(POAManagerFactory_impl.java:157) > at com.ooc.OB.ORBControl.initializeRootPOA(ORBControl.java:548) > at com.ooc.OBCORBA.ORB_impl.resolve_initial_references(ORB_impl.java:781) > at com.ooc.CosNaming.Server.run(Server.java:131) > at com.ooc.CosNaming.Server.main(Server.java:371) > > Note that gentoo8 is the hostname of my machine. Why does the NameService try to get the IP address of the machine? Is there a way to force it to use only numeric IP addresses? > > Thanks for help, > Alessandro > I've just given the Naming service a try here on a Linux Gentoo system and I'm not seeing the error you mention. One thing I did notice in the command you are using to start the service is that you have an '=' in the -OAhost option. Try removing this and see if this clears up your problem (use -OAhost 10.107.127.143). Regards, Darren -- Darren Middleman 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