Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9060

ServletUnitTestCase fails with security manager

    XMLWordPrintable

Details

    • Hide

      cd wildfly/testsuite/integration/basic
      mvn clean test -Dtest=ServletUnitTestCase -Dsecurity.manager

      Show
      cd wildfly/testsuite/integration/basic mvn clean test -Dtest=ServletUnitTestCase -Dsecurity.manager

    Description

      ServletUnitTestCase fails with security manager because of missing permission "("org.wildfly.security.permission.ElytronPermission" "getSecurityDomain")":

      javax.servlet.ServletException: Failed to call EJBs/Session30 through remote and local interfaces
      	at org.jboss.as.test.integration.ejb.servlet.EJBServlet.processRequest(EJBServlet.java:73)
      	at org.jboss.as.test.integration.ejb.servlet.EJBServlet.doGet(EJBServlet.java:82)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      ...
      Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("org.wildfly.security.permission.ElytronPermission" "getSecurityDomain")" in code source "(vfs:/content/ejb3-servlet.war/WEB-INF/classes <no signer certificates>)" of "ModuleClassLoader for Module "deployment.ejb3-servlet.war" 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.wildfly.security.auth.server.SecurityDomain.getCurrent(SecurityDomain.java:155)
      ...
      

      Attachments

        Issue Links

          Activity

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: WFLY

              People

                chaowan@redhat.com Chao Wang
                okotek@redhat.com Ondrej Kotek
                Ondrej Kotek Ondrej Kotek
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: