-
Bug
-
Resolution: Done
-
Major
-
7.1.0.DR12, 7.1.0.DR13, 7.1.0.DR14, 7.1.0.DR15, 7.1.0.DR16
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"]
}
- blocks
-
JBEAP-9051 Tracking JIRA for tests failing with Elytron profile in AS TS
-
- Closed
-
- is caused by
-
JBEAP-10049 Principal from @RunAsPrincipal bean annotation does not get authorised with role from @RunAs bean annotation unless the user exists in backing security realm
-
- Closed
-
- is related to
-
JBEAP-9080 EJB security tests are failing in AS TS with Elytron profile
-
- Closed
-