-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.3.1
-
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
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