This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Naming.rebind() failing to connect to a running registry.  RSS feed

 
Vishal Saxena
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My thanks to somebody who can shoot this; I am stuck.

Note that the rmi registry has started successfully; still Naming.rebind() fails to connect. Is it because the rmiregistry 1099 starts at hostname and localhost doesn't resolve to it?


 
megha ghanekar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!
if u r following the steps correctly & there is no version problem for ur rmic i.e. rmi compiler. then plz check the classpath. I faced the problem bcoz oracle9 was first in the classpath & registry for that was started. so append the previous classpath after ur jdk path.
if u rusing jdk1.2 onwards u need to say
rmic -v1.2 filename
& then compile. may be this is 1 of the problem. These were the practical problems that u generally face.
 
pawank gupta
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
as i understand, u need to configure ur tname server embed with ur jdk n u need to start that server first. n one more thing u r implementing the corba architecture then u need to compile ur classes via usin command
rmic -iiop class name.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
megha and pawank -

Please don't use abbreviations like "u", "ur", "r", "plz" - it makes your posts harder to understand by non-English readers who may be using automated translation tools, or may not know that "ur" means "your/you're" and be confused.

Please see the JavaRanch FAQ for any further information on this.
 
Vishal Saxena
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Megha,
Note the exception - anything and everything is not related to classpath.

Patwa..,
I don't understand what tname embed within Jdk is and you can see that I am not using CORBA. It is simple java:


anybody?
 
Oricio Ocle
Ranch Hand
Posts: 284
Debian Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
as an aside note:

or

is prefered in order to start the registry programatically.

Try then:


Is there any difference?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!