Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4839980

Sun & IBM ORB incompatibility

XMLWordPrintable

    • x86
    • windows_2000

      The customer has a J2EE application deployed on Websphere application server on
      Solaris 8. He is trying to lookup EJBs/DataSources from a stand alone Java client from a Windows 2000 box.

      Please see attached sample code that we used to reproduce the exception :
      LookupWS.java When the customer tries to lookup either a DataSource or an EJB from the client machine using Sun JDK 1.3.1 he encounters
      "javax.naming.ServiceUnavailableException". When the same program is run using IBM JDK 1.3 the code runs fine with no problems.

      What we did to resolve the issue:

      We tested the sample code attached with Sun JDK 1.3.1 & 1.4.X versions and were able to reproduce the exception seen by the customer. To run the program with Sun JDK we had to set the following properties and with ibmorb.jar (from Websphere installtion) on the application classpath :

      java
       -Dorg.omg.CORBA.ORBClass=com.ibm.rmi.iiop.ORB
       -Dorg.omg.CORBA.ORBSingletonClass=com.ibm.rmi.corba.ORBSingleton
       -Djavax.rmi.CORBA.UtilClass=com.ibm.rmi.javax.rmi.CORBA.Util
       -Djavax.rmi.CORBA.StubClass=com.ibm.rmi.javax.rmi.CORBA.StubDelegateImpl
      -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.ibm.rmi.javax.rmi.PortableRemote
       Object

            hputtaswsunw Hemanth Puttaswamy (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: