aspose file tools*
The moose likes Distributed Java and the fly likes Java IDL tool ,servertool, register command not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Java IDL tool ,servertool, register command not working " Watch "Java IDL tool ,servertool, register command not working " New topic
Author

Java IDL tool ,servertool, register command not working

Abhijeet Sutar
Greenhorn

Joined: Feb 28, 2010
Posts: 17

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 ??

OCPJP 6 93%
Karl Beowulph
Ranch Hand

Joined: May 31, 2004
Posts: 130
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.
Karl Beowulph
Ranch Hand

Joined: May 31, 2004
Posts: 130
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java IDL tool ,servertool, register command not working
 
Similar Threads
error running j2ee server
JMS and JNDI
SOAP and HTTPs Help!!!
More problems starting J2EE
desperatly need help: j2ee RI's deploytool got exception on my unix port