Name: skT88420 Date: 09/02/99
The switch to a different ORB other than the default JavaIDL using command
line parameters -Dorg.omg.CORBA.ORBClass and -Dorg.omg.CORBA.ORBSingletonClass
doesn't work anymore. I am trying to use a Corba 2.3 ORB JavaORB.
The same setup works well with Java 2 SDK 1.2.2. I am attaching the
command line, the properties listing & the error message.
D:\s\jstuff\Src\corba\hello2\corba_pkg>java -Dorg.omg.CORBA.ORBClass=JavaORB.COR
BA.ORBSingleton -Dorg.omg.CORBA.ORBSingletonClass=JavaORB.CORBA.ORBSingleton -DJ
AVA_ORB_DIR=d:\s\jstuff\src\corba\hello2\corba_pkg -classpath .;d:\s\jorb\JavaOR
Bv2_0\Lib\JavaORBv2_0.jar;d:\s\jorb\JavaORBv2_0\Lib\CosNaming.jar;d:\s\jorb\Java
ORBv2_0\Lib\CosCollection.jar ORBServer
-- listing properties --
java.runtime.name=Java(TM) 2 Runtime Environment, Stand...
sun.boot.library.path=d:\s\jdk1.3\jre\bin
java.vm.version=1.3beta-O
java.vm.vendor=Sun Microsystems Inc.
JAVA_ORB_DIR=d:\s\jstuff\src\corba\hello2\corba_pkg
java.vendor.url=http://java.sun.com/
path.separator=;
java.vm.name=Java(TM) HotSpot Client VM
file.encoding.pkg=sun.io
java.vm.specification.name=Java Virtual Machine Specification
user.dir=D:\s\jstuff\Src\corba\hello2\corba_pkg
java.runtime.version=1.3beta-O
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
os.arch=x86
java.io.tmpdir=C:\TEMPline.separator=
java.vm.specification.vendor=Sun Microsystems Inc.
java.awt.fonts=
os.name=Windows NT
org.omg.CORBA.ORBSingletonClass=JavaORB.CORBA.ORBSingleton
java.library.path=d:\s\jdk1.3\bin;.;C:\WINNT\System32;C...
java.specification.name=Java Platform API Specification
java.class.version=46.0
org.omg.CORBA.ORBClass=JavaORB.CORBA.ORBSingleton
os.version=4.0
user.home=C:\WINNT\Profiles\sranga01
user.timezone=America/Los_Angeles
java.awt.printerjob=sun.awt.windows.WPrinterJob
file.encoding=Cp1252
java.specification.version=1.3beta
user.name=Sranga01
java.class.path=.;d:\s\jorb\JavaORBv2_0\Lib\JavaORBv2...
java.vm.specification.version=1.0
java.home=d:\s\jdk1.3\jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
awt.toolkit=sun.awt.windows.WToolkit
java.vm.info=mixed mode
java.version=1.3beta
java.ext.dirs=d:\s\jdk1.3\jre\lib\ext
sun.boot.class.path=d:\s\jdk1.3\jre\lib\rt.jar;d:\s\jdk1....
java.vendor=Sun Microsystems Inc.
file.separator=java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport...
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
user.region=US
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+m...
Exception in thread "main" org.omg.CORBA.INITIALIZE: can't instantiate default O
RB implementation JavaORB.CORBA.ORBSingleton minor code: 0 completed: No
at org.omg.CORBA.ORB.create_impl(ORB.java:270)
at org.omg.CORBA.ORB.init(ORB.java:307)
at ORBServer.main(ORBServer.java:9)
The code is very simple :
public static void main(String[] args) {
System.getProperties().list(System.out);
org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(
args,null);
System.out.println("Successful ORB init");
}
(Review ID: 94804)
======================================================================
- duplicates
-
JDK-4266054 unable to create an instance of non-SUN ORB
-
- Resolved
-