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

RunAsPrincipalTestCase fails to deploy when Elytron profile is used

    XMLWordPrintable

Details

    Description

      The RunAsPrincipalTestCase fails during deploying runasprincipal-test.war when Elytron profile is used (-Delytron).

      mjurc@redhat.com Could you investigate it more deeply please?

      cd testsuite/integration/basic
      mvn clean test -Dtest=RunAsPrincipalTestCase -Delytron
      ...
      19:45:17,354 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 31) MSC000001: Failed to start service jboss.deployment.unit."runasprincipal-test.war".component.SingletonBean.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."runasprincipal-test.war".component.SingletonBean.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
      	at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:57)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	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)
      Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
      	at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
      	at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)
      	at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
      	at org.jboss.as.ejb3.component.singleton.SingletonComponent.getComponentInstance(SingletonComponent.java:124)
      	at org.jboss.as.ejb3.component.singleton.SingletonComponent.start(SingletonComponent.java:138)
      	at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
      	... 6 more
      Caused by: org.wildfly.security.authz.AuthorizationFailureException: ELY01088: Attempting to run as "Helloween" authorization operation failed
      	at org.wildfly.security.auth.server.SecurityIdentity.createRunAsIdentity(SecurityIdentity.java:628)
      	at org.jboss.as.ejb3.security.RunAsPrincipalInterceptor.processInvocation(RunAsPrincipalInterceptor.java:72)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
      	at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
      	at org.jboss.as.ejb3.security.SecurityDomainInterceptor.processInvocation(SecurityDomainInterceptor.java:44)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
      	at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
      	at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
      	at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
      	at org.jboss.as.ejb3.component.singleton.StartupCountDownInterceptor.processInvocation(StartupCountDownInterceptor.java:25)
      	at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:240)
      	at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
      	at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
      	... 11 more
      
      19:45:17,398 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "runasprincipal-test.war")]) - failure description: {
          "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"runasprincipal-test.war\".component.SingletonBean.START" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"runasprincipal-test.war\".component.SingletonBean.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
          Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
          Caused by: org.wildfly.security.authz.AuthorizationFailureException: ELY01088: Attempting to run as \"Helloween\" authorization operation failed"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"runasprincipal-test.war\".component.SingletonBean.START"]
      }
      19:45:17,405 ERROR [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0021: Deploy of deployment "runasprincipal-test.war" was rolled back with the following failure message: 
      {
          "WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"runasprincipal-test.war\".component.SingletonBean.START" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"runasprincipal-test.war\".component.SingletonBean.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
          Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
          Caused by: org.wildfly.security.authz.AuthorizationFailureException: ELY01088: Attempting to run as \"Helloween\" authorization operation failed"},
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.deployment.unit.\"runasprincipal-test.war\".component.SingletonBean.START"]
      }
      

      Attachments

        Issue Links

          Activity

            People

              mjurc@redhat.com Michal Jurc
              josef.cacek@gmail.com Josef Cacek (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: