-
1. Re: Getting java.security. AccessControlException for MBeanPermission
gipathak Mar 31, 2017 2:39 AM (in response to gipathak)Hi,
I got the solution for this error and added following highlighted xml code in standalone.xml , it got fixed . Now I am getting java.lang.SecurityException: Unable to create temporary file .
Can anyone please tell me what is the syntax for adding permission for temporary file creation. As i have added one sample line in below xml with strike-through , what can I give here ?
<subsystem xmlns="urn:jboss:domain:security-manager:1.0">
<deployment-permissions>
<minimum-set>
<permission class="java.lang.RuntimePermission" name="getClassLoader" actions="read,write"/>
<permission class="java.lang.reflect.ReflectPermission" name="suppressAccessChecks" actions="read,write"/>
<permission class="java.util.PropertyPermission" name="*" actions="read"/>
<permission class="java.lang.RuntimePermission" name="accessClassInPackage.sun.reflect" actions="read,write"/>
<permission class="java.lang.RuntimePermission" name="accessDeclaredMembers" actions="read,write"/>
<permission class="java.lang.RuntimePermission" name="shutdownHooks"/>
<permission class="javax.management.MBeanPermission" name="*" actions="queryNames"/>
<permission class="javax.management.MBeanServerPermission" name="*"/>
<permission class="javax.management.MBeanPermission" name="*" actions="registerMBean"/>
<permission class="javax.management.MBeanTrustPermission" name="*"/>
<permission class="java.io.FilePermission" name="what can I give here for temporary file creation " actions="read,write"/>
</minimum-set>
</deployment-permissions>
</subsystem>
-
2. Re: Getting java.security. AccessControlException for MBeanPermission
gipathak May 8, 2017 11:27 PM (in response to gipathak)1 of 1 people found this helpfulI got the solution from stackoverflow link : http://stackoverflow.com/questions/43065884/wildfly-security-manager-permission-failed-for-javax-management-mbeanpermissio