Thomas Becker wrote:

I try to use the CosNaming name-service coming with Jonathan on JDK1.2.2 (Solaris) calling

java\
 -Dorg.omg.CORBA.ORBClass=org.objectweb.david.libs.contexts.orbs.iiop.IIOPORB\
 -Dorg.omg.CORBA.ORBSingletonClass=org.objectweb.david.libs.contexts.orbs.ORBSingletonClass\
 org.objectweb.david.libs.services.CosNaming.NameServer -file ns.ior

When accessing the name-service I get the following exception on the client side:

org.omg.CORBA.UNKNOWN:   minor code: 0 completed: Maybe
...

Forcing to use the org.omg.CosNaming classes of Jonathan by specifying
 -Xbootclasspath:.../jonathan/classes:.../jdk1.2.2/jre/lib/rt.jar
when starting the name-service solves the problem. Now I suspect that there
is an incompatibility of Jonathan and JDK CosNaming classes. Is this a known
issue or am I doing something wrong?

Dear Thomas,

Two things :

  • thanks to your question,  I found a minor bug that caused the UNKNOWN exception to be raised. However, this does not solve your problem : an IncompatibleClassChangeError is now raised...
  • the problem is that the jdk1.2.2 org.omg classes are not compliant with the standard. In particular, there is no NamingContextOperations interface defined.
The only solution is thus to use the -XBootclasspath option. Sorry...

Best regards,

Bruno
 

--
*******************************************************************
Bruno Dumant
DTL/ASR
france telecom R&D
38-40 rue du général Leclerc
92794 Issy Moulineaux Cedex 9
FRANCE

mailto:[EMAIL PROTECTED]
tel: +33 1 45 29 46 03
fax: +33 1 45 29 66 04
*******************************************************************
 

Reply via email to