RE: can't instantiate default ORB implementation com.ooc.OBServer.ORB

"Sang Yong Park" <[email protected]> Tue, 10 May 2005 11:19:47 +0900
Newsgroups gmane.comp.corba.orbacus
Message-ID <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAABJmSw+9dbUqrEGkstk2uvcKAAAAQAAAAG+TTo7z6Ukm6JzOQGMSsmwEAAAAA@ece.skku.ac.kr>
Hi,

I have already set the classpath to my platform.
Classpath is the following

CLASSPATH=.:/opt/jade/classes:/opt/jade/lib:/opt/orbacus/lib:/opt/orbacus/li
b/OB.jar:/opt/orbacus/lib/OBEvent.jar:/opt/orbacus/lib/OBNaming.jar:/opt/orb
acus/lib/OBProperty.jar:/opt/orbacus/lib/OBTest.jar:/opt/orbacus/lib/OBUtil.
jar

And I'm using Orbacus 4.2.2 sp2 on Gentoo linux

Linux lunar.xxx.xx.xx 2.6.8-gentoo-r4 #2 SMP Thu Mar 31 13:50:56 KST 2005
i686 AMD Opteron(tm) Processor 242 AuthenticAMD GNU/Linux

Please help me again.

One more I wanna ask a question is where I can get the ORBacus 4.03 for
Java.
Version conflict may arise if I tested interoperability between JADE and
ORBacus.

Thank you.

-----Original Message-----
From: Darren Middleman [mailto:[email protected]] 
Sent: Monday, May 09, 2005 9:53 PM
To: Sang Yong Park
Cc: Orbacus Users
Subject: Re: [ob-users] can't instantiate default ORB implementation
com.ooc.OBServer.ORB

Hi,

> 
> I'm new to ORBacus for Java.
> 
> I'm getting the following error while running the Server file which is
> presented in orbacus guide.
> 
>
(http://www.orbacus.com/support/new_site/manual/4.2.1/users_guide/start11.ht
> ml#471312)
> 
> Could you please specify a solution for this?
> 
> gnoygnas@lunar orbacusEx $ java hello.Server
> 
> org.omg.CORBA.INITIALIZE: can't instantiate default ORB implementation
> com.ooc.OBServer.ORB  vmcid: 0x0  minor code: 0  completed: No
>         at org.omg.CORBA.ORB.create_impl(ORB.java:297)
>         at org.omg.CORBA.ORB.init(ORB.java:336)
>         at hello.Server.main(Server.java:17)
> Caused by: java.lang.ClassNotFoundException: com.ooc.OBServer.ORB
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:219)
>         at org.omg.CORBA.ORB.create_impl(ORB.java:295)
>         ... 2 more
> 

It looks like your problem is being caused by not having your CLASSPATH
environment variable set up correctly (since Java can't find the class 
com.ooc.OBServer.ORB).  Make sure that you have the Orbacus JAR files in 
your classpath so that Java can find the Orbacus classes.

Regards,
Darren

-- 
Darren Middleman, Software Engineer
Team Orbacus - Your CORBA Source
Email: mailto:[email protected]
WWW: http://www.orbacus.com/


_______________________________________________
OB-Users Mailing List - [email protected]
http://mail.ooc.nf.ca/mailman/listinfo/ob-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html