1 2 Previous Next 24 Replies Latest reply on Jul 15, 2013 3:41 AM by Sueleyman Vurucu

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

    Sueleyman Vurucu Expert

      Hi,

       

      I need to set a SecurityManager for my tests. If I do this then I get an Exception shown below;

       

       

      11:13:13,395 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 57) MSC000001: Failed to start service jboss.persistenceunit."wms-wan-ear.ear#WMSDS": org.jboss.msc.service.StartException in service jboss.persistenceunit."wms-wan-ear.ear#WMSDS": org.hibernate.boot.registry.selector.spi.StrategySelectionException: Could not instantiate named strategy class [com.siemag.components.server.updating.DomainInterceptor]
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:112)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]
          at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
      Caused by: org.hibernate.boot.registry.selector.spi.StrategySelectionException: Could not instantiate named strategy class [com.siemag.components.server.updating.DomainInterceptor]
          at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:162)
          at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveStrategy(StrategySelectorImpl.java:136)
          at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.processProperties(EntityManagerFactoryBuilderImpl.java:895)
          at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:826)
          at org.hibernate.jpa.HibernatePersistenceProvider.createContainerEntityManagerFactory(HibernatePersistenceProvider.java:142)
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:214)
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$800(PersistenceUnitServiceImpl.java:59)
          at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:108)
          ... 4 more
      Caused by: java.security.AccessControlException: access denied ("java.util.logging.LoggingPermission" "control")
          at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366) [rt.jar:1.7.0_17]
          at java.security.AccessController.checkPermission(AccessController.java:560) [rt.jar:1.7.0_17]
          at java.lang.SecurityManager.checkPermission(SecurityManager.java:549) [rt.jar:1.7.0_17]
          at org.jboss.logmanager.LogContext.checkSecurityAccess(LogContext.java:345) [jboss-logmanager-1.4.1.Final.jar:1.4.1.Final]
          at org.jboss.logmanager.Logger.attachIfAbsent(Logger.java:198) [jboss-logmanager-1.4.1.Final.jar:1.4.1.Final]
          at org.apache.log4j.JBossAppenderHandler.createAndAttach(JBossAppenderHandler.java:43)
          at org.apache.log4j.JBossLogManagerFacade.getJBossLogger(JBossLogManagerFacade.java:39)
          at org.apache.log4j.JBossLogManagerFacade.getJBossRootLogger(JBossLogManagerFacade.java:98)
          at org.apache.log4j.JBossLogManagerFacade.getLoggerRepository(JBossLogManagerFacade.java:49)
          at org.apache.log4j.LogManager.getLoggerRepository(LogManager.java:49)
          at com.siemag.components.logging.WMSLoggerFactory.getDefaultRepository(WMSLoggerFactory.java:53)
          at com.siemag.components.logging.WMSLoggerFactory.getLogger(WMSLoggerFactory.java:85)
          at com.siemag.components.logging.WMSLoggerFactory.getLogger(WMSLoggerFactory.java:96)
          at com.siemag.components.server.updating.DomainInterceptor.<init>(DomainInterceptor.java:11)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [rt.jar:1.7.0_17]
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) [rt.jar:1.7.0_17]
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [rt.jar:1.7.0_17]
          at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [rt.jar:1.7.0_17]
          at java.lang.Class.newInstance0(Class.java:374) [rt.jar:1.7.0_17]
          at java.lang.Class.newInstance(Class.java:327) [rt.jar:1.7.0_17]
          at org.hibernate.boot.registry.selector.internal.StrategySelectorImpl.resolveDefaultableStrategy(StrategySelectorImpl.java:159)
          ... 11 more
      

       

      My Policy file:

      grant{

        permission java.security.AllPermission;

      };

       

      I try to set the LoggingPermission"control" with codebase but I had no luck with that. The same stuff is running under 7.2.0.Final.

        1 2 Previous Next