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

Could not define a JACC Policy Provider

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • None
    • 22.0.1.Final
    • Security
    • None
    • Hide

      from cli if I run the command

      /subsystem=elytron/policy=jacc:add(jacc-policy={})

      It gives me the following output:

      {
      "outcome" => "failed",
      "response-headers" =>

      { "operation-requires-reload" => true, "process-state" => "reload-required" }

      ,
      "failure-description" => {"WFLYCTL0080: Failed services" => {"org.wildfly.security.policy" => "java.lang.RuntimeException: WFLYELY01024: Failed to register policy
      context handlers
      Caused by: java.lang.RuntimeException: WFLYELY01024: Failed to register policy context handlers
      Caused by: java.lang.IllegalStateException: WFLYELY01069: Invalid javax.security.jacc.PolicyConfigurationFactory loaded, expected org.wildfly.security.authz.jacc.
      ElytronPolicyConfigurationFactory but received org.jboss.security.jacc.JBossPolicyConfigurationFactory."}},
      "rolled-back" => true
      }

      Show
      from cli if I run the command /subsystem=elytron/policy=jacc:add(jacc-policy={}) It gives me the following output: { "outcome" => "failed", "response-headers" => { "operation-requires-reload" => true, "process-state" => "reload-required" } , "failure-description" => {"WFLYCTL0080: Failed services" => {"org.wildfly.security.policy" => "java.lang.RuntimeException: WFLYELY01024: Failed to register policy context handlers Caused by: java.lang.RuntimeException: WFLYELY01024: Failed to register policy context handlers Caused by: java.lang.IllegalStateException: WFLYELY01069: Invalid javax.security.jacc.PolicyConfigurationFactory loaded, expected org.wildfly.security.authz.jacc. ElytronPolicyConfigurationFactory but received org.jboss.security.jacc.JBossPolicyConfigurationFactory."}}, "rolled-back" => true }
    • Undefined
    • ---
    • ---

      Following the guide to enable Java EE Security support in my Java EE 8 application

      https://docs.wildfly.org/22/WildFly_Elytron_Security.html#defining-a-jacc-policy-provider

       

      Envinronment:

      Windows 10 x64

      openjdk version "11.0.9.1" 2020-11-04 LTS
      OpenJDK Runtime Environment 18.9 (build 11.0.9.1+1-LTS)
      OpenJDK 64-Bit Server VM 18.9 (build 11.0.9.1+1-LTS, mixed mode)

       

              darran.lofthouse@redhat.com Darran Lofthouse
              Vano.Beridze@ol.ge Ivane Beridze (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: