]
Ingo Weiss reassigned WFCORE-2194:
----------------------------------
Assignee: Ingo Weiss
StartSuspendedTestCase fails with security manager in WF core
-------------------------------------------------------------
Key: WFCORE-2194
URL:
https://issues.jboss.org/browse/WFCORE-2194
Project: WildFly Core
Issue Type: Bug
Components: Test Suite
Reporter: Jan Tymel
Assignee: Ingo Weiss
*org.jboss.as.test.manualmode.suspend.StartSuspendedTestCase#testStartSuspended*
{{cd testsuite/manualmode/}}
{{mvn test -Dtest=StartSuspendedTestCase -DtestLogToFile=false -Dsecurity.manager}}
{code}
10:44:10,392 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001:
Failed to start service jboss.test-undertow-server: org.jboss.msc.service.StartException
in service jboss.test-undertow-server: Failed to start service
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1919)
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.lang.RuntimeException: java.security.AccessControlException: WFSM000001:
Permission check failed (permission "("java.lang.RuntimePermission"
"createXnioWorker")" in code source "(vfs:/content/web-suspend.jar
<no signer certificates>)" of "ModuleClassLoader for Module
"deployment.web-suspend.jar:main" from Service Module Loader")
at io.undertow.Undertow.start(Undertow.java:206)
at
org.wildfly.test.suspendresumeendpoint.TestUndertowService.start(TestUndertowService.java:94)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1963)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1896)
... 3 more
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed
(permission "("java.lang.RuntimePermission"
"createXnioWorker")" in code source "(vfs:/content/web-suspend.jar
<no signer certificates>)" of "ModuleClassLoader for Module
"deployment.web-suspend.jar:main" 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.xnio.XnioWorker.<init>(XnioWorker.java:108)
at org.xnio.nio.NioXnioWorker.<init>(NioXnioWorker.java:83)
at org.xnio.nio.NioXnio.createWorker(NioXnio.java:214)
at org.xnio.Xnio.createWorker(Xnio.java:466)
at org.xnio.Xnio.createWorker(Xnio.java:453)
at io.undertow.Undertow.start(Undertow.java:117)
... 6 more
{code}