1 Reply Latest reply on Aug 25, 2016 12:48 PM by James Perkins

    java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission" "control")

    Ravi Narayanan Newbie

      Dear all,

       

      I am trying to deploy switchyard application in Jboss EAP server.

       

      iam getting the below error.

      Caused by: java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission" "control")

              at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372) [rt.jar:1.7.0_80]

              at java.security.AccessController.checkPermission(AccessController.java:559) [rt.jar:1.7.0_80]

              at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) [rt.jar:1.7.0_80]

              at org.jboss.logmanager.LogContext.checkSecurityAccess(LogContext.java:345) [jboss-logmanager-1.4.3.Final-redhat-1.jar:1.4.3.Final-redhat-1]

              at org.jboss.logmanager.Logger.attachIfAbsent(Logger.java:198) [jboss-logmanager-1.4.3.Final-redhat-1.jar:1.4.3.Final-redhat-1]

              at org.apache.log4j.JBossAppenderHandler.createAndAttach(JBossAppenderHandler.java:43) [log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.apache.log4j.JBossLogManagerFacade.getJBossLogger(JBossLogManagerFacade.java:39) [log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.apache.log4j.JBossLogManagerFacade.getLogger(JBossLogManagerFacade.java:136) [log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:130) [log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:125) [log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.apache.log4j.LogManager.getLogger(LogManager.java:57) [log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at org.apache.log4j.Logger.getLogger(Logger.java:39) [log4j-jboss-logmanager-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

              at com.example.switchyard.switchyard_example_sample1.BeanClassOne.<clinit>(BeanClassOne.java:10)

              ... 39 more

       

       

      I have the default security policy.

       

      grant {

      permission java.security.AllPermission;

      };

       

       

      and in my standalone conf security policy is mentioned

       

      JAVA_OPTS="$JAVA_OPTS -Djava.security.manager \"-Djava.security.policy=$DIRNAME/security.policy\" \"-Drtgov.security.policy=$DIRNAME/rtgov.policy\" \"-Dkie.security.policy=$DIRNAME/kie.policy\""

       

       

      Can you please tell me what might be the issue.