Add the permission for the deployment:
new RuntimePermission("modifyThread")
WFLY-5519 Some clustering tests fail with security manager