3 Replies Latest reply on Nov 26, 2015 8:56 AM by Marcelo Sales

    Using RMISecurityManager in Wildfly

    LS Group Newbie

      Hi,

       

      I have an application that makes an external RMI call:

       

      System.setSecurityManager(new RMISecurityManager());

       

      When this runs in WIldfly 8.1 on JDK 8, I get

       

      java.lang.SecurityException: WFSM000002: Security manager may not be changed

      at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:225)

      at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:150)

      at java.lang.System.setSecurityManager0(System.java:300)

      at java.lang.System.setSecurityManager(System.java:291)

      at com.test.client.TestClient.init(TestClient.java:72)

       

      Has anyone encountered this issue?