NameService and getHostByName()
"Alessandro Villamaina" <[email protected]>
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Message-ID | <[email protected]> |
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
_______________________________________________
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