Forums Register Login

Java IDL tool ,servertool, register command not working

+Pie Number of slices to send: Send
Hi all,

I am trying to run the one sample CORBA application , which HelloPersistent, from Here
I have all setup for running this app

but when i am trying to run the servertool for registering server , it hangs in and never responds


I used following command

servertool -ORBInitialPort 1050

(My ORBD is already running on port 1050)
then it gives me prompt and entered following command

servertool> register -server PersistentServer -applicationName s1
-classpath .

after this it hangs in and does not do anything

What could be wrong with this ??
+Pie Number of slices to send: Send
Was anyone able to solve this? I'm stuck at about the same point.

As root, I ran the following:


This gave me the following error:


I've tried changing ports, but the same message keeps appearing. I've also run netstat to confirm that none of the ports are in use.

Looking online, I've found the error listed on Oracle's documentation pages:

org.omg.CORBA.INTERNAL. vmcid: SUN minor code: 208 means Unable to determine local hostname using InetAddress.getLocalHost().getHostName().
The ORB uses InetAddress.getLocalHost().getHostName() to create a reference to the name service for looking for and/or binding references. It also uses InetAddress.getLocalHost().getHostName() on the server side to create remote object references (i.e., IORs) that contain the name/port of the server (rather than a dotted-decimal/port pair).

To avoid the call to getHostName, you can set the following properties (refer to Starting and Stopping ORBD if you are not sure how to do this):

Set com.sun.CORBA.ORBServerHost to the DNS name or dotted-decimal address of the server if the ORB is acting as a server.
Set com.sun.CORBA.ORBInitialHost to the DNS name or dotted-decimal address of the name server.


However, the follow-up documentation doesn't really address this.
+Pie Number of slices to send: Send
Alright, my issue (at least) is resolved. The problem was that I didn't have "Aspire" set as an alias for 127.0.0.1 in my /etc/hosts file.
The City calls upon her steadfast protectors. Now for a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 4796 times.
Similar Threads
SOAP and HTTPs Help!!!
desperatly need help: j2ee RI's deploytool got exception on my unix port
error running j2ee server
More problems starting J2EE
JMS and JNDI
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 09:26:14.