Hi all,

I've great problems getting OCF to work in browsers. I want to write an
applet that accesses a smart card via the OCF and javax.comm. In the final
version all neccessary classes and dlls should be downloaded with the applet
(if possible).

-------------------

The first thing I tried, was to use the Java Plug-in.
I created a .jar file, and signed it with my test-key.
It works fine - but I needed to modify the .java.policy file.

So my first question is: Is there a way to avoid the modification of the
.java.policy file?

-------------------

Then I wanted to develop an applet for the IE without Java plug-in.
I inserted the two lines:

opencard.core.util.SystemAccess sys = new
opencard.opt.ms.MicrosoftSystemAccess();
opencard.core.util.SystemAccess.setSystemAccess(sys);

before SmartCard.start();

as described in the OCF programmers guide.
After that I created a .cab file with "dubuild" and signed it with
"signcode" and permission set to all permissions ("signcode ... -jp low
..").

The CLASSPATH contains comm.jar;base-core.jar;base-opt.jar;kobil.jar
(CardTerminal driver)
When I start the Applet I get the following exception:

com.ms.security.SecurityExceptionEx[Host]: cannot access file
C:\WINNT\Java\lib\javax.comm.properties
        at com/ms/security/permissions/FileIOPermission.check
        at com/ms/security/PolicyEngine.deepCheck
        at com/ms/security/PolicyEngine.checkPermission
        at com/ms/security/StandardSecurityManager.chk
        at com/ms/security/StandardSecurityManager.checkRead
        at java/io/FileInputStream.<init>
        at java/io/FileInputStream.<init>
        at javax/comm/CommPortIdentifier.loadDriver
        at javax/comm/CommPortIdentifier.<clinit>
        at javax/comm/CommPortIdentifier.getPortIdentifier
        at de/kobil/opencard/terminal/KobilB1ProCardTerminal.open
        at opencard/core/terminal/CardTerminalRegistry.add
        at de/kobil/opencard/terminal/KobilCardTerminalFactory.createCardTerminals
        at opencard/core/service/SmartCard.handleTerminalFactoryEntries
        at opencard/core/service/SmartCard.configureTerminalRegistry
        at opencard/core/service/SmartCard.start
        at KobilApplet.startOCF
        at KobilApplet.init
        at com/ms/applet/AppletPanel.securedCall0
        at com/ms/applet/AppletPanel.securedCall
        at com/ms/applet/AppletPanel.processSentEvent
        at com/ms/applet/AppletPanel.processSentEvent
        at com/ms/applet/AppletPanel.run
        at java/lang/Thread.run

althogh the javax.comm.properties file is there and is accessible!

What I am doing wrong?

-------------------

My third question concerns Netscape Communicator. Is it possible to use OCF
through Netscape Communicator without the Java Plug-in?
I read an older article in this group, where the author says, that it's not
possible under Win NT due to a mismatch of security models.


------------------

I'm developing on a Windows NT 4.0 platform with OCF 1.2, JDK 1.3, JRE 1.3,
Java Plug-in 1.3.0-c, IE 5.5 and Netscape Communicator 4.75.


Best regards

        Thomas


----------------------------------------------
Thomas Wahrenbruch
Hardware Development
Kobil Systems GmbH
Weinsheimer Str. 71, D-67547 Worms/Germany
Mail: [EMAIL PROTECTED]   Web: www.kobil.de





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