• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?


 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 284
Netbeans IDE Firefox Browser Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic