10 Replies Latest reply on Apr 22, 2013 2:00 PM by opfau

    AccessControlException: access denied but jars are signed with JRE 1.7.0 13


      I deployed an ear which contains a war on jboss 7.

      The war containers signed jars in directory jnlp. The jnlp descriptor references the all jars in directory jnlp. The jnlp descriptor contains:


      The exception I get:

      java.security.AccessControlException: access denied ("java.io.FilePermission" "D:\tmp" "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.checkRead(Unknown Source)
           at java.io.File.exists(Unknown Source)
           at mypackage.ImageLoader.loadImages(ImageLoader.java:107)

      In ImageLoader.java:107 the method of File.exists() is called.

      I created my keystore: keytool.exe -genkeypair -keyalg rsa -alias mycert -keystore test_keystore.jks -storepass mypassw -keypass mypassw -validity 360

      Then I use the maven-webstart-plugin to created the jnlp descriptor and it also sign the jars and verifies ist.

      I got really stucked...has someone an idea?


      Edited by: opfl on 12.02.2013 03:44