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

Cache creation requires specific permissions when using security manager

    Details

      Description

      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.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 "ModuleClassLoader for Module "deployment.infinispan-resource-ref.war:main" from Service Module Loader")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:278)
      	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:163)
      	at org.infinispan.commons.util.ReflectionUtil.getClassForName(ReflectionUtil.java:319)
      	at org.infinispan.commons.util.ReflectionUtil.toClassArray(ReflectionUtil.java:313)
      	at org.infinispan.factories.AbstractComponentRegistry$Component.buildInjectionMethodsList(AbstractComponentRegistry.java:810)
      	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:213)
      	at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:193)
      	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:171)
      	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:163)
      	at org.infinispan.factories.ComponentRegistry.<init>(ComponentRegistry.java:79)
      	... 210 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  iweiss Ingo Weiss
                  Reporter:
                  pferraro Paul Ferraro
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: