diff --git a/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/infinispan/counter/InfinispanCounterTestCase.java b/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/infinispan/counter/InfinispanCounterTestCase.java index cb0be2cd2ab9..4e3d133a081b 100644 --- a/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/infinispan/counter/InfinispanCounterTestCase.java +++ b/testsuite/integration/clustering/src/test/java/org/jboss/as/test/clustering/cluster/infinispan/counter/InfinispanCounterTestCase.java @@ -5,6 +5,9 @@ package org.jboss.as.test.clustering.cluster.infinispan.counter; +import static org.jboss.as.test.shared.PermissionUtils.createPermissionsXmlAsset; + +import java.io.FilePermission; import java.io.IOException; import java.net.URISyntaxException; import java.net.URL; @@ -67,6 +70,11 @@ private static Archive createDeployment() { .addPackage(InfinispanCounterServlet.class.getPackage()) .setManifest(new StringAsset("Manifest-Version: 1.0\nDependencies: org.infinispan, org.infinispan.commons, org.infinispan.counter\n")) .addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml") + .addAsManifestResource(createPermissionsXmlAsset( + // WFLY-17968 + new FilePermission("<>", "read,write"), + new RuntimePermission("getClassLoader") + ), "permissions.xml") ; }