Hello Sebastian,

this could be a signing problem, not an OCF problem, since signed
applets are granted ALL rights and therefore no securityException should
occur. Signing applets is a 
difficult task, since all the different version numbers have to fit
together. We made some experiences with it and the stable version-suite
uses java PlugIn1.3, Netscape Signingtool 1.3, Netscape 4.7. I don't
know
if the JDK version matters, since the plugIn has a 'classic' mode; we
used JDK 1.2.2
and JDK 1.3.

Perhaps you should at first write a small applet to check wether the
signing process works, then watch out for your system classpath since
the PlugIn uses it, and be aware that all classes have to be signed. So
put everything in one big jar-file (this works) or try to sign all
jar-files (does this work?). If you have a running signed archive, you
can transpose your knowledge to the OCF-applet.


Sebastien Jean schrieb:
> 
> Hi,
> 
> i try to write an applet using OCF.
> My configuration is Win98, OCF12, GCR410, netscape4.7, jdk1.1.8  and
> java plugin 1.1
> 
> According to what i could find in OCF mailing list archive and OCF-PG
> i have :
> - written a simple applet that does not use browser specific
> systemAccess and just does SmartCard.start(); and compiled it with jdk
> 1.1.8
> - generated test certificates and signed this applet
> - converted html file for using java plugin instead of netscape VM
> - correctly set all classpathes
> 
> As an application it works.
> As an applet it works under Sun's AppletViewer
> Using it in netscape/javaPlugIn1.1 i have such boring exception :
> ********************
> Java(TM) Plug-in
> Using JRE version 1.1.8
> User home directory = C:\WINDOWS
> Proxy Configuration: no proxy
> Request focus
> JAR cache disabled.
> sun.applet.AppletSecurityException: checkread
>  at sun.applet.AppletSecurity.checkRead(Compiled Code)
>  at sun.applet.AppletSecurity.checkRead(AppletSecurity.java:352)
>  at java.io.FileInputStream.<init>(FileInputStream.java:50)
>  at java.io.FileInputStream.<init>(FileInputStream.java:75)
>  at
> opencard.core.util.SystemAccess.loadProperties(SystemAccess.java:120)
>  at opencard.opt.util.OpenCardPropertyFileLoader.load(Compiled Code)
>  at opencard.opt.util.OpenCardPropertyFileLoader.loadProperties(Compiled
> Code)
>  at opencard.core.service.SmartCard.start(SmartCard.java:520)
>  at OCFTestApplet.init(Compiled Code)
>  at sun.applet.AppletPanel.run(Compiled Code)
>  at java.lang.Thread.run(Thread.java:466)
> *********************************
> 
> I think what is wrong is that no policy is defined but i do not really
> know how it can be defined in  1.1 model and where it has to be stored
> 
> Does someone who has succeeded writting such an applet in the same
> platform can help ?
> 
> Thanks,
> Sebastien.

--
Lars K�hn                 fon: (+49) 5121 - 748 70 67
Mentana GmbH              fax: (+49) 5121 - 748 70 79
Am Flugplatz 3
D-31137 Hildesheim             PGP-key ID: 0xB8D11EE3


---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to