RE: can't instantiate default ORB implementation com.ooc.OBServer.ORB
"Sang Yong Park" <[email protected]> Fri, 13 May 2005 12:01:22 +0900
| Newsgroups | gmane.comp.corba.orbacus |
|---|---|
| Message-ID | <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAABJmSw+9dbUqrEGkstk2uvcKAAAAQAAAA+pJbqvxOWEC0Z99hbkGbgQEAAAAA@ece.skku.ac.kr> |
Hello,
Finally, I have figured out that problem.
The problem is that java run time can't find com.ooc.OBServer.ORB class in
OB.jar
I think ORBacus User's guide was wrong.
The guide says an implemention of Server in Server.java like this
props.put("org.omg.CORBA.ORBClass", "com.ooc.OBServer.ORB");
props.put("org.omg.CORBA.ORBSingletonClass", "com.ooc.CORBA.ORBSingleton");
The only thing I had to modify is com.ooc.OBServer.ORB to com.ooc.CORBA.ORB
props.put("org.omg.CORBA.ORBClass", "com.ooc.CORBA.ORB");
props.put("org.omg.CORBA.ORBSingletonClass", "com.ooc.CORBA.ORBSingleton");
It works fine~
Anyway, I really thank you for your advice.
Hava a nice day!
-----Original Message-----
From: Darren Middleman [mailto:[email protected]]
Sent: Friday, May 13, 2005 9:02 AM
To: Sang Yong Park
Cc: Orbacus Users
Subject: Re: [ob-users] can't instantiate default ORB implementation
com.ooc.OBServer.ORB
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.
>
> [...]
I've been trying to duplicate the error that you are seeing and the only
circumstance that causes the ClassNotFoundException that you are seeing is
when I do not have my classpath correctly set. I don't see anything wrong
with the classpath you provided so all I can recommend with regards to this
is to double check that the Orbacus jar files are in the location you
specified in your classpath.
If the jar files are there, it could be possible that the jar files may
have been corrupted (what file size do you have for the OB.jar file?). In
this case, it might be worth trying to rebuild and reinstall Orbacus for
Java and see if this clears up the problem.
Could you also tell me which version of Java you used to build Orbacus?
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