Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9361

Unable to read-resource when application-security-domain is either defined or required

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Duplicate Issue
    • Affects Version/s: 7.1.0.DR13
    • Fix Version/s: None
    • Component/s: Web (Undertow)
    • Labels:
      None

      Description

      Steps to reproduce, either A) or B):
      A)
      1. deploy war from JBEAP-8612
      2. boot up server, there will be error in console:

      12:06:51,877 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "print-roles.war")]) - failure description:

      Unknown macro: { "WFLYCTL0412}
      - ignore.
      3. open jboss-cli and issue **:read-resource(recursive=true,include-runtime=true)
      4. Error:

      12:07:04,476 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 3) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
      ("deployment" => "print-roles.war"),
      ("subsystem" => "undertow"),
      ("servlet" => "PrincipalPrintingServlet")
      ]): java.lang.IllegalStateException
      at org.jboss.msc.value.InjectedValue.getValue(InjectedValue.java:47)
      at org.wildfly.extension.undertow.DeploymentServletDefinition$AbstractMetricsHandler$1.execute(DeploymentServletDefinition.java:132)
      at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:921)
      at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:664)
      at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:383)
      at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1388)
      at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:414)
      at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:236)
      at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:258)
      at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:236)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:217)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:137)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:161)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:157)
      at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:277)
      at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
      at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:157)
      at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
      at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      at org.jboss.threads.JBossThread.run(JBossThread.java:320)

      B)
      1. follow instructions above, but issue all CLI commands that JBEAP-8612 require to setup proper env, there will be no boot/deployment error
      2. Error:

      11:42:52,223 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("read-attribute") failed - address: ([
      ("subsystem" => "undertow"),
      ("application-security-domain" => "print-roles")
      ]): java.lang.IllegalArgumentException: WFLYCTL0394: Capability 'org.wildfly.extension.undertow.application-security-domain.print-roles' does not provide services of type 'interface java.util.function.Function'
      at org.jboss.as.controller.capability.RuntimeCapability.getCapabilityServiceName(RuntimeCapability.java:183)
      at org.wildfly.extension.undertow.ApplicationSecurityDomainDefinition$ReferencingDeploymentsHandler.execute(ApplicationSecurityDomainDefinition.java:237)
      at org.jboss.as.controller.operations.global.ReadAttributeHandler.doExecuteInternal(ReadAttributeHandler.java:174)
      at org.jboss.as.controller.operations.global.ReadAttributeHandler.doExecute(ReadAttributeHandler.java:137)
      at org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:231)
      at org.jboss.as.controller.operations.global.GlobalOperationHandlers$AvailableResponseWrapper.execute(GlobalOperationHandlers.java:989)
      at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:979)
      at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:722)
      at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:441)
      at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1388)
      at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:421)
      at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
      at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:264)
      at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:217)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:137)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:161)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:157)
      at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:283)
      at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
      at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
      at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:157)
      at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
      at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      at org.jboss.threads.JBossThread.run(JBossThread.java:320)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ctomc Toma┼ż Cerar
                  Reporter:
                  baranowb Bartosz Baranowski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: