DILLENSEGER Bruno FTRD/DTL wrote:

> 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?

The problem you mention is not specific to Jonathan, it is certainly
related to the specification of the codebase and archives, but I am not
at all a specialist of applets. When I tried to have applets work with
the Java plugin, I had to
use a tool that modified the applet to make it use the plugin. Is it
still the case, and if so, did you use that tool ?

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