I have My JBOSS Wildfly set up. I have a problem when accessing a certain part in my code that I get an error with the message as bellow:
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed for ("org.jboss.vfs.VirtualFilePermission
I have my standalone.xml config with permissions as bellow:
<subsystem xmlns="urn:jboss:domain:security-manager:1.0">
<deployment-permissions>
<minimum-set>
<permission class="java.security.AllPermission"/>
<permission class="org.jboss.naming.JndiPermission"/>
<permission class="java.lang.RuntimePermission" name="createClassLoader"/>
<permission class="java.lang.RuntimePermission" name="getClassLoader"/>
<permission class="java.io.FilePermission" name="/tmp" actions="read,write"/>
<permission class="java.io.FilePermission" name="/opt" actions="read"/>
</minimum-set>
<maximum-set>
<permission class="java.security.AllPermission"/>
</maximum-set>
</deployment-permissions>
</subsystem>
Can anyone help to figure out what is missing in the config? or why am I receiving this error?
Thanks.
You need . To see what the "name" and "action" are, turn on the java.security.debug flag by passing "-Djava.security.debug=access,failure,policy" to the JVM in the startup script. The log will be very verbose. Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.