-
Bug
-
Resolution: Done
-
Major
-
11.0.0.Final
-
None
SingletonPartitionTestCase fails with security manager because of missing permission ServerPermission("useServiceRegistry"):
ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.unit."SingletonPartitionTestCase.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."SingletonPartitionTestCase.war".INSTALL: WFLYSRV0153: Failed to process phase INSTALL of deployment "SingletonPartitionTestCase.war" at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:172) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("org.jboss.as.server.security.ServerPermission" "useServiceRegistry")" in code source "(vfs:/content/SingletonPartitionTestCase.war/WEB-INF/classes <no signer certificates>)" of "ModuleClassLoader for Module "deployment.SingletonPartitionTestCase.war" 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 org.jboss.as.server.deployment.service.SecuredServiceRegistry.checkPermission(SecuredServiceRegistry.java:51) at org.jboss.as.server.deployment.service.SecuredServiceRegistry.getRequiredService(SecuredServiceRegistry.java:32) at org.jboss.as.test.clustering.cluster.singleton.partition.SingletonServiceActivator.activate(SingletonServiceActivator.java:56) at org.jboss.as.server.deployment.service.ServiceActivatorProcessor.deploy(ServiceActivatorProcessor.java:91) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165) ... 5 more
ServerPermission("getCurrentServiceContainer") is also required.
- blocks
-
WFLY-6542 Fix issues in tests with Security Manager
- Open
- clones
-
JBEAP-13581 SingletonPartitionTestCase fails with security manager
- Closed