[jboss-jira] [JBoss JIRA] (WFLY-6479) MBeanTCCLTestCase fails with security manager

Jan Tymel (JIRA) issues at jboss.org
Mon Apr 4 08:25:00 EDT 2016


Jan Tymel created WFLY-6479:
-------------------------------

             Summary: MBeanTCCLTestCase fails with security manager
                 Key: WFLY-6479
                 URL: https://issues.jboss.org/browse/WFLY-6479
             Project: WildFly
          Issue Type: Bug
          Components: Test Suite
            Reporter: Jan Tymel
            Assignee: Jan Tymel


*org.jboss.as.test.integration.sar.context.classloader.MBeanTCCLTestCase*

{{./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.sar.context.classloader.MBeanTCCLTestCase -Dsecurity.manager}}

Fails with:
{code}
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "getClassLoader")" in code source "(vfs:/content/tccl-mbean-test-app.ear/jar-containing-mbean-class.jar <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:1525)
	at java.lang.Thread.getContextClassLoader(Thread.java:1436)
	at org.jboss.as.test.integration.sar.context.classloader.mbean.MBeanInAModuleService.testClassLoadByTCCL(MBeanInAModuleService.java:44)
	at org.jboss.as.test.integration.sar.context.classloader.mbean.MBeanInAModuleService.<clinit>(MBeanInAModuleService.java:17)
	... 14 more
{code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list