7 Replies Latest reply on Aug 28, 2017 2:03 AM by lam_shing

    JBOSS EAP java security policy

    dsexton18

      I have JBOSS EAP 6.4.5 I am having issues with getting java security policy to work correctly. For the most part it is granting permissions however my app is getting denied permissions for the below.

      Permissions denied "/u01/standalone/foo/deployments/Foo.ear/lib/spring-web-4.1.6.RELEASE.jar/org/springframework/web/context/ContextLoader.properties

      I added the below to the java security policy file but now luck.

      grant codeBase "vfs:/u01/standalone/foo/deployments/FOO.ear/-" { permission java.security.AllPermission; }

      ;

      permission org.jboss.vfs.VirtualFilePermission "/u01/standalone/foo/deployments/Foo.ear/lib/spring-web-4.1.6.RELEASE.jar/org/springframework/web/context/ContextLoader.properties", "read";

      I also had some runtime permissions get denied but I can’t recall what they are off the top of my head right now. I do know I added those specific runtime permissions to the security policy but the log still showed access denied.  Is there a way to grant all permissions to runtime just for now?


      Any help is appreciated. Thanks