[jboss-jira] [JBoss JIRA] (WFCORE-2536) JmxSensitiveTestCase fails with security manager in WF core
James Perkins (JIRA)
issues at jboss.org
Tue Mar 28 17:52:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-2536?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Perkins reopened WFCORE-2536:
-----------------------------------
Assignee: James Perkins (was: ehsavoie Hugonnet)
Reopening as this still seems to have a failure with the security manager enabled
{code}
Failed tests:
{"outcome" => "failed","failure-description" => {"WFLYCTL0080: Failed services" => {"test.deployment.jmx" => "org.jboss.msc.service.StartException in service test.deployment.jmx: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"javax.management.MBeanPermission\" \"org.wildfly.test.jmx.Dynamic#-[jboss.test:service=testdeployments]\" \"registerMBean\")\" in code source \"(vfs:/content/test-jmx-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-deployment.jar\" from Service Module Loader\")
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"javax.management.MBeanPermission\" \"org.wildfly.test.jmx.Dynamic#-[jboss.test:service=testdeployments]\" \"registerMBean\")\" in code source \"(vfs:/content/test-jmx-deployment.jar <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.test-jmx-deployment.jar\" from Service Module Loader\")"},"WFLYCTL0412: Required services that are not installed:" => ["test.deployment.jmx"]},"rolled-back" => true}
{code}
> JmxSensitiveTestCase fails with security manager in WF core
> -----------------------------------------------------------
>
> Key: WFCORE-2536
> URL: https://issues.jboss.org/browse/WFCORE-2536
> Project: WildFly Core
> Issue Type: Bug
> Components: Test Suite
> Reporter: Jan Tymel
> Assignee: James Perkins
> Fix For: 3.0.0.Beta11
>
>
> *org.jboss.as.test.integration.mgmt.access.JmxSensitiveTestCase*
> {{cd testsuite/rbac/}}
> {{mvn test -Dtest=JmxSensitiveTestCase -Dsecurity.manager -DtestLogToFile=false}}
> {code}
> 13:42:13,573 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service test.deployment.jmx: org.jboss.msc.service.StartException in service test.deployment.jmx: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("javax.management.MBeanPermission" "org.wildfly.test.jmx.Dynamic#-[jboss.test:service=testdeployments]" "registerMBean")" in code source "(vfs:/content/test-jmx-deployment.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.test-jmx-deployment.jar" from Service Module Loader")
> at org.wildfly.test.jmx.ServiceActivatorDeployment.start(ServiceActivatorDeployment.java:111)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.lang.Thread.run(Thread.java:785)
> Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("javax.management.MBeanPermission" "org.wildfly.test.jmx.Dynamic#-[jboss.test:service=testdeployments]" "registerMBean")" in code source "(vfs:/content/test-jmx-deployment.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.test-jmx-deployment.jar" 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 com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.checkMBeanPermission(DefaultMBeanServerInterceptor.java:1842)
> at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:333)
> at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:534)
> at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.registerMBean(PluggableMBeanServerImpl.java:1536)
> at org.jboss.as.jmx.PluggableMBeanServerImpl.registerMBean(PluggableMBeanServerImpl.java:878)
> at org.wildfly.test.jmx.ServiceActivatorDeployment.registerMBean(ServiceActivatorDeployment.java:139)
> at org.wildfly.test.jmx.ServiceActivatorDeployment.start(ServiceActivatorDeployment.java:99)
> ... 5 more
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list