Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-6238

InfinispanResourceRefTestCase fails with 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.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
      

            rhn-support-iweiss Ingo Weiss
            jtymel Jan Tymel (Inactive)
            Jan Tymel Jan Tymel (Inactive)
            Jan Tymel Jan Tymel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m