1 Reply Latest reply on May 8, 2017 11:22 PM by Girish Pathak

    How to set temporary file creation permission in wildly 10 with jersey 1.19.1 ?

    Girish Pathak Newbie

      I have enabled security-manager in wildly 10 with below configuration in standalone.xml but when I am starting wildly 10 application server getting following exception :

       

      17:30:58,534 INFO  [com.sun.jersey.server.impl.application.WebApplicationImpl] (ServerService Thread Pool -- 60) Initiating Jersey application, version 'Jersey: 1.19.1 03/11/2016 02:08 PM' 17:30:59,064 SEVERE [com.sun.jersey.core.spi.component.ProviderFactory] (ServerService Thread Pool -- 60) The provider class, class com.sun.jersey.multipart.impl.MultiPartReaderServerSide, could not be instantiated. Processing will continue but the class will not be utilized: java.lang.SecurityException: Unable to create temporary file

       

       

         <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="here is the doubt what to give here for permission" actions="read,write"/>
        
      </minimum-set>
        
      </deployment-permissions>
        
      </subsystem>

       

      My product development environment is -jdk8 , jersey 1.19.1 and wildly 10 . Can anyone help me out here please where I am going wrong ?