Dear Jonathan-Davidians,

I am experiencing troubles in using Jonathan/David in an applet.
My code is written for Java2 (version 1.2.2) and compiled with Jikes (1.11); I use 
appletviewer 1.2.2_006, Java Plugin 1.2.2 for Windows, and Java Plugin 1.3.0 for 
Solaris. My system works allright if I use Java's ORB instead of David's.

Here is the HTML definition for my applet:

<APPLET codebase=".." 
archive="lib/jonathan.jar,lib/mobilitools.jar,examples/examples.jar" 
code="AppletAgency" width="400" height="200">
        <PARAM name="org.omg.CORBA.ORBClass" 
value="org.objectweb.david.libs.contexts.orbs.iiop.IIOPORB">
        <PARAM name="org.omg.CORBA.ORBSingletonClass" 
value="org.objectweb.david.libs.contexts.orbs.ORBSingletonClass">
        <PARAM name="david.CosNaming.default_method" value="1">
        <PARAM name="david.CosNaming.default_url" 
value="http://g-toubu.grenoble.cnet.fr/~dillense/MobiliTools/src/cos-ns.ior">
</APPLET>

I get the following exception:
==============================
java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: can't instantiate 
default ORB implementation org.objectweb.david.libs.contexts.orbs.ORBSingletonClass  
minor code: 0  completed: No
        at org.omg.CORBA.ORB.create_impl(ORB.java:305)
        at org.omg.CORBA.ORB.<clinit>(ORB.java:202)
        at AppletAgency.init(AppletAgency.java:49)
        at sun.applet.AppletPanel.run(AppletPanel.java:342)
        at java.lang.Thread.run(Thread.java:479)

Line 49 of AppletAgency invokes ORB.init(Applet, Properties).

The applet runs fine if (and only if) I run it from the appletwiewer with 
-Xbootclasspath option
(appletviewer -J-Xbootclasspath:../lib/jonathan.jar:/usr/java/jre/lib/rt.jar 
AppletAgency.html).

Does anyone have an idea?

Best regards,
-- Bruno.
___________________________________________________
 Dr. Bruno DILLENSEGER - France Telecom R&D (CNET)
 Distributed   Systems   Architecture   Department
 phone: +33 4 76 76 41 46,  fax: +33 4 76 76 45 57
 e-mail      [EMAIL PROTECTED]
 web URL       http://bruno.dillenseger.online.fr/
___________________________________________________

Reply via email to