[jboss-jira] [JBoss JIRA] (WFLY-9466) SingletonPartitionTestCase fails with security manager
Ondrej Kotek (JIRA)
issues at jboss.org
Mon Oct 23 07:28:00 EDT 2017
[ https://issues.jboss.org/browse/WFLY-9466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ondrej Kotek moved JBEAP-13582 to WFLY-9466:
--------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-9466 (was: JBEAP-13582)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Test Suite
(was: Test Suite)
Affects Version/s: 11.0.0.Final
(was: 7.1.0.CR3)
> SingletonPartitionTestCase fails with security manager
> ------------------------------------------------------
>
> Key: WFLY-9466
> URL: https://issues.jboss.org/browse/WFLY-9466
> Project: WildFly
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 11.0.0.Final
> Reporter: Ondrej Kotek
>
> {{SingletonPartitionTestCase}} fails with security manager because of missing permission {{ServerPermission("useServiceRegistry")}}:
> {noformat}
> 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
> {noformat}
> {{ServerPermission("getCurrentServiceContainer")}} is also required.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list