Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7535

Cache creation requires specific permissions when using security manager

XMLWordPrintable

      org.jboss.as.test.integration.ee.injection.resource.infinispan.InfinispanResourceRefTestCase#test

      ./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.ee.injection.resource.infinispan.* -Dsecurity.manager

      NOTE

      specify the InfinispanResourceRefTestCase itself will succeed:
      ./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.ee.injection.resource.infinispan.InfinispanResourceRefTestCase -Dsecurity.manager

      Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "getClassLoader")" in code source "(vfs:/content/infinispan-resource-ref.war/WEB-INF/classes <no signer certificates>)" of "null")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
      	at java.lang.ClassLoader.checkClassLoaderPermission(ClassLoader.java:1528)
      	at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1442)
      	at org.infinispan.commons.util.Util.getClassLoaders(Util.java:127)
      	at org.infinispan.commons.util.Util.loadClassStrict(Util.java:150)
      	at org.infinispan.commons.util.Util.loadClass(Util.java:101)
      	at org.infinispan.factories.AbstractComponentRegistry.instantiateFactory(AbstractComponentRegistry.java:359)
      	at org.infinispan.factories.AbstractComponentRegistry.createComponentFactoryInternal(AbstractComponentRegistry.java:339)
      	at org.infinispan.factories.ComponentRegistry.createComponentFactoryInternal(ComponentRegistry.java:202)
      	at org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:322)
      	at org.infinispan.factories.ComponentRegistry.getFactory(ComponentRegistry.java:183)
      	at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:288)
      	at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
      	at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
      	at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
      	at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
      	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
      	at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
      	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:170)
      	at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
      	at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:156)
      	at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:241)
      	at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:70)
      	at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:815)
      	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:215)
      

              rhn-engineering-lgao Lin Gao
              rhn-engineering-lgao Lin Gao
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: