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

Darren Middleman <[email protected]> Mon, 9 May 2005 10:22:59 -0230
Newsgroups gmane.comp.corba.orbacus
Organization IONA | Making Software Work Together TM
Message-ID <[email protected]>
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