Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 826289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:23:34+00:00 2026-05-15T03:23:34+00:00

I’m hoping to get some help with this weird problem. We’re running the Jacorb

  • 0

I’m hoping to get some help with this weird problem. We’re running the Jacorb name server and I have a simple client that I’m using to try to connect and do awesome CORBA voodoo. The name server is running, but when I try to start my java app, I get a "Connection failure" error (org.omg.CORBA.COMM_FAILURE, minor code 201, "caused by java.net.ConnectionException: Connection refused: connect").

Here’s the weird part. The error reports that it’s trying to connect using the default port 900, but I’m passing in an argument to try to override the port number of the name service to match the one being used by the name server. My java command is like this:

java -classpath . HelloClient -Djava.endorsed.dirs="bla bla bla" <br>
-Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB 
-Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton
-DORBInitRef.NameService=corbaloc::localhost:2809/StandardNS/NameServer-POA/_root

I also tried the parameters without the first capital D (I’ve seen it both ways and I don’t know the difference).

Now, if I put in -ORBInitialPort 2809, then the client does appear to try to connect, but then I get a corba.OBJECT_NOT_EXIST error.

I could use any help or advice anyone has.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:23:35+00:00Added an answer on May 15, 2026 at 3:23 am

    Connection Refused. This sounds like a firewall/program not running issue.
    try a telnet <machine> 2809. You should get a “Connected to ”
    and not a refusal, if everything is running/enabled correctly.

    I’m running on a UNIX client so the paths use UNIX style.

    1. jacORB installed properly ? e.g. get the nameservice entry from the
      orb.properties file (in ${JAVA_HOME}/jre/lib/
      I use “ORBInitRef.NameService=corbaloc::localhost:2809/NameServer”
      as “NameServer” is used on the production name server and not the other
      string of “Standard….”

      The other changes in the properties files are setting the paths to UNIX
      style (i.e. e:\NS_Ref -> /tmp/NS_Ref)
      jacorb.naming.ior_filename=/tmp/NS_Ref

    1a. Setting the http:// in the properties file didn’t seem to do anything
    in regards to resolving on the client side.

    1b. NOTE: start ns with:
    ns -DOAPort=2809

    Log will show:
    2010-05-27 10:00:47.777 FINE Created socket listener on 0.0.0.0/0.0.0.0:2809
    2010-05-27 10:00:47.777 FINE Using port 2809
    Running:
    $ lsof | grep 2809
    java 27529 jbsymolo 15u IPv6 693300 TCP *:2809 (LISTEN)
    $ lsof -Pnl +M -i6
    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
    Naming_Se 9678 1000 7u IPv6 45779 TCP *:51148 (LISTEN)
    java 27959 1000 15u IPv6 696092 TCP *:2809 (LISTEN)

    Not Running: (shows nothing)

    1. ns when started will log where it reads the properties from and it shouldn’t
      throw any errors. If it does your properties files have issues.

    2. VM arguments. The -D is used to set system properties. Any Java code can
      then access any property so defined via System.getProperty(). Even though
      I’ve also seen the “non-D” used, I’ve been using the D.

      -DORBInitRef.NameService=corbaloc::localhost:2809/NameService
      -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
      -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton

    When running the client in Eclipse, I see the following in the Console:

    May 27, 2010 10:01:06 AM org.jacorb.config.JacORBConfiguration init
    INFO: base configuration loaded from file /usr/lib/java/jdk1.6.0_18/jre/lib/orb.properties
    ...
    2010-05-27 10:01:09.836 FINE Trying to connect to 127.0.0.1:2809 with timeout=90000.
    2010-05-27 10:01:09.844 INFO Connected to 127.0.0.1:2809 from local port 45745
    2010-05-27 10:01:09.846 FINE wrote 12 bytes to 127.0.0.1:2809
    ...
    

    Skipping lots of other read/write traffic

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have this code to decode numeric html entities to the UTF8 equivalent character.
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.