dcsimg
problems with AuroraORB
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, August 4, 2004 02:26 AM

I have big problems with AuroraORB under Oracle. I have loaded some java classes into oracle server. Example import org.omg.CORBA.*; public class A { public static void f1( ) { org.omg.CORBA.ORB orb=org.omg.CORBA.ORB.init( ); System.out.println(orb); } public static void main(String args[]) { f1( ); } } I have made appropriate PL/SQL stotred procedure for f1( ) method. When i am trying to execute this procedure, i got the following SQL exception at SQL prompt. java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE:can't instantiate default ORB implementation com.sun.CORBA.idl.ORBSingl   More>>

I have big problems with AuroraORB under Oracle.
I have loaded some java classes into oracle server.
Example

import org.omg.CORBA.*;
public class A
{
public static void f1( )
{
org.omg.CORBA.ORB orb=org.omg.CORBA.ORB.init( );
System.out.println(orb);
}
public static void main(String args[])
{
f1( );
}
}
I have made appropriate PL/SQL stotred procedure for f1( ) method.
When i am trying to execute this procedure,
i got the following SQL exception at SQL prompt.


java.lang.ExceptionInInitializerError:
org.omg.CORBA.INITIALIZE:can't instantiate default ORB implementation com.sun.CORBA.idl.ORBSingleton minor code :0
completed:No

at org.omg.CORBA.ORB.create_impl(ORB.java)
at org.omg.CORBA.ORB. (ORB.java)
at A.f1(A.java:5)

can u give me the solution to rectify this
kiran

   <<Less

Re: problems with AuroraORB

Posted By:   Kiran_Kumar  
Posted On:   Wednesday, August 18, 2004 05:14 AM

set the properties compatible to visigenic orb for java.

Properties prop = System.getProperties();
prop.put("org.omg.CORBA.ORBClass","com.visigenic.vbroker.orb.ORB");
prop.put("org.omg.CORBA.ORBSingletonClass","com.visigenic.vbroker.orb.ORB");
This should be set before init method.
Now it works
About | Sitemap | Contact