This discussion is archived
10 Replies Latest reply: Apr 22, 2013 7:00 AM by 943372 RSS

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

943372 Newbie
Currently Being Moderated
Hi,

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:

<security>
<all-permissions/>
</security>

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?

Regards
Oliver

Edited by: opfl on 12.02.2013 03:44

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points