Hi everybody,
This happens inside an applet (IE5).
When a button is pressed the code is:
                ...
                SmartCard.start();
                ...

and the exception it throws is:
ava.security.AccessControlException: access denied
(java.util.PropertyPermission OpenCard.loaderClassName read)    at
java.security.AccessControlContext.checkPermission(Unknown Source)      at
java.security.AccessController.checkPermission(Unknown Source)  at
java.lang.SecurityManager.checkPermission(Unknown Source)       at
java.lang.SecurityManager.checkPropertyAccess(Unknown Source)   at
java.lang.System.getProperty(Unknown Source)    at
opencard.core.util.SystemAccess.getProperty(SystemAccess.java:92)       at
opencard.core.service.SmartCard.start(SmartCard.java:507)       at
com.E_com.card.client.CardCommunication.initOCF(CardCommunication.java:79)
at
com.E_com.views.applet.LoginApplet.btnOK_actionPerformed(LoginApplet.java:21
1)      at
com.E_com.views.applet.LoginApplet$1.actionPerformed(LoginApplet.java:80)
at java.awt.Button.processActionEvent(Unknown Source)   at
java.awt.Button.processEvent(Unknown Source)    at
java.awt.Component.dispatchEventImpl(Unknown Source)    at
java.awt.Component.dispatchEvent(Unknown Source)        at
java.awt.EventQueue.dispatchEvent(Unknown Source)       at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)   at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)         at
java.awt.EventDispatchThread.run(Unknown Source)


My .java.policy:
/* AUTOMATICALLY GENERATED ON Thu Oct 18 10:23:30 GMT-03:00 2001*/
/* DO NOT EDIT */

keystore ".keystore";

grant signedBy "XPaysec" {
  permission java.util.PropertyPermission "*", "read,write";
  permission java.io.FilePermission "${java.home}/lib/opencard.properties",
"read";
  permission java.io.FilePermission "${user.home}/.opencard.properties",
"read";
  permission java.io.FilePermission "${user.dir}/opencard.properties",
"read";
  permission java.io.FilePermission "${user.dir}/.opencard.properties",
"read";
  permission java.lang.RuntimePermission "loadLibrary.*";
  permission java.lang.RuntimePermission "reflect.declared.*";
};

The file .opencard.properties is in my user.home directory

Does anybody know what is wrong?
I need help asap
thanks in advance


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