[
https://issues.jboss.org/browse/WFLY-6191?page=com.atlassian.jira.plugin....
]
Ivo Studensky commented on WFLY-6191:
-------------------------------------
[~esantana] if you start the server manually just by standalone.sh, you run it without
Security Manager enabled and then the test passes. That's expected. You need to let
the testsuite startup the server for you with correct parameters which is done by
-Dsecurity.manager. If you do so, the test will fail.
ExpressionSubstitutionInContainerTestCase fails due to
AccessControlException with security manager enabled
-----------------------------------------------------------------------------------------------------------
Key: WFLY-6191
URL:
https://issues.jboss.org/browse/WFLY-6191
Project: WildFly
Issue Type: Bug
Components: Test Suite
Reporter: Hynek Švábek
Assignee: Ivo Studensky
*org.jboss.as.test.integration.management.api.expression.ExpressionSubstitutionInContainerTestCase*
{{./integration-tests.sh -fae -Dmaven.test.failure.ignore=true -DfailIfNoTests=false
-Dsecurity.manager -Dts.basic -Dts.noSmoke
-Dtest=org.jboss.as.test.integration.management.api.expression.ExpressionSubstitutionInContainerTestCase}}
{code}
Failed to start service
jboss.deployment.unit."expression-substitution-test.jar".INSTALL:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."expression-substitution-test.jar".INSTALL: WFLYSRV0153:
Failed to process phase INSTALL of deployment
"expression-substitution-test.jar"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:154)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed
(permission "("java.lang.RuntimePermission"
"getClassLoader")" in code source
"(vfs:/content/expression-substitution-test.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.Class.getClassLoader(Class.java:683)
at
org.jboss.msc.service.ServiceControllerImpl.invokeListener(ServiceControllerImpl.java:1529)
at
org.jboss.msc.service.ServiceControllerImpl.access$2800(ServiceControllerImpl.java:51)
at
org.jboss.msc.service.ServiceControllerImpl$ListenerTask.run(ServiceControllerImpl.java:2099)
at
org.jboss.msc.service.ServiceControllerImpl.commitInstallation(ServiceControllerImpl.java:265)
at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:771)
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)
at
org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401)
at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)
at
org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401)
at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317)
at
org.jboss.as.test.integration.management.api.expression.ExpressionTestManagementService.activate(ExpressionTestManagementService.java:69)
at
org.jboss.as.server.deployment.service.ServiceActivatorProcessor.deploy(ServiceActivatorProcessor.java:74)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
... 5 more
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)