[jboss-jira] [JBoss JIRA] (WFLY-11349) Tests in org.jboss.as.test.clustering.cluster fails with security manager
Martin Choma (Jira)
issues at jboss.org
Wed Nov 14 08:38:00 EST 2018
Martin Choma created WFLY-11349:
-----------------------------------
Summary: Tests in org.jboss.as.test.clustering.cluster fails with security manager
Key: WFLY-11349
URL: https://issues.jboss.org/browse/WFLY-11349
Project: WildFly
Issue Type: Bug
Components: Test Suite
Affects Versions: 14.0.0.Final
Reporter: Martin Choma
{noformat}
org.jboss.as.test.clustering.cluster.cdi (1)
CdiFailoverTestCase.test
org.jboss.as.test.clustering.cluster.jsf (2)
JSFFailoverTestCase.testGracefulSimpleFailover
JSFFailoverTestCase.testGracefulUndeployFailover
org.jboss.as.test.clustering.cluster.provider (1)
ServiceProviderRegistrationTestCase.test
org.jboss.as.test.clustering.cluster.singleton (4)
SingletonBackupServiceTestCase.testSingletonService
SingletonDeploymentDescriptorTestCase.test
SingletonDeploymentJBossAllTestCase.test
SingletonPartitionTestCase.testSingletonService
org.jboss.as.test.clustering.cluster.xsite (1)
XSiteSimpleTestCase.test
{noformat}
Seems to me doPrivileged block is missing in server code somewhere. There are errors like
{noformat}
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.lang.RuntimePermission" "accessClassInPackage.sun.reflect")" in code source "(vfs:/content/CdiFailoverTestCase.war/WEB-INF/classes <no signer certificates>)" of "ModuleClassLoader for Module "deployment.CdiFailoverTestCase.war" from Service Module Loader")
at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:294)
at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:191)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1564)
at org.wildfly.security.manager.WildFlySecurityManager.checkPackageAccess(WildFlySecurityManager.java:490)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:318)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.jboss.modules.JDKSpecific.getSystemClass(JDKSpecific.java:180)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:395)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
at org.jboss.marshalling.river.Protocol.<clinit>(Protocol.java:310)
Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission \"(\"java.lang.RuntimePermission\" \"accessDeclaredMembers\")\" in code source \"(vfs:/content/XSiteSimpleTestCase.war/WEB-INF/classes <no signer certificates>)\" of \"ModuleClassLoader for Module \"deployment.XSiteSimpleTestCase.war\" from Service Module Loader\")"}}}}
Caused by: java.lang.ExceptionInInitializerError
at org.jboss.marshalling.river.RiverMarshaller.<clinit>(RiverMarshaller.java:1274)
{noformat}
[1] https://ci.wildfly.org/viewLog.html?buildId=128138&buildTypeId=WF_MasterSecurityManager
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list