Tony, Are you, by any chance, trying to run this from a client side java applet where you haven't looked at the security issues surrounding a java applet having access to local files on the client? What I am suspecting is that the java applet tries to obtain access to the local file, namely opencard.properties, however because applets were designed with the specific intension of not allowing access to local files, you get a rather nasty security error. This topic has been touched on a couple of times in this opencard discussion. You may want to spend some time delving into the archives. There was some mention a while back about adjusting the java.policy file. I have decided to take another tact and use an architecture that was designed to access files on the local machine. I.e., creation of an ActiveX component. (refer http://www.cs.princeton.edu/sip/faq/java-vs-activex.html for a concise view of this issue) I don't have a complete answer, as this is still work in progress for me. Maybe someone else out there has some insight into the use of ActiveX components to implement the OpenCard framework on the web... Regards, Robyn >From: "Tony Brook" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: [OCF] Security exception for Opencard Applet using GIS Smart >Mouse... >Date: Tue, 10 Oct 2000 11:27:48 +0100 > >I'm currently trying to create a Java Applet that talks to a GIS Smart >Mouse >card reader (SM1) using Open Card Framework. > >The Applet is built into a JAR file and signed with a test certificate >using >Sun's JDK 1.3 Keytool. > >The Applet starts fine but fails with: > >Exception java.security.AccessControlException: access denied >(java.util.PropertyPermission OpenCard.loaderClassName read) > >executing: > >SmartCard.start(); > >I have built the various properties files into my signed Jar and have tried >downloading comm.jar, base-core.jar, base-opt.jar across from the server >and >picking them up from the client machine with no success. > >Within the opencard.properties file, I am using the terminalfactory: > >OpenCard.terminals = >com.sun.oc.terminal.sm.SMCardTerminalFactory|Smart.Mouse|SM1|COM1 > >Can anyone help me with this? > >Many thanks, > >Tony Brook >[EMAIL PROTECTED] > >Future theFuture = new Future(new String("Java"), this); >www.totally.co.uk > > > > >--- > > 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. > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. --- > 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.
