]
Stuart Douglas commented on WFLY-9126:
--------------------------------------
Looks like the reproducer app is missing?
Deployment fails when application domain names referrencing one
Elytron domain are different in Undertow and EJB subsystems
---------------------------------------------------------------------------------------------------------------------------
Key: WFLY-9126
URL:
https://issues.jboss.org/browse/WFLY-9126
Project: WildFly
Issue Type: Bug
Components: EJB, Security, Web (Undertow)
Reporter: Josef Cacek
Assignee: Stuart Douglas
Priority: Critical
The WAR deployment fails when it contains EJBs and Servlets with security domains mapped
under different names (application-security-domain). The underlying Elytron domain is the
same for both subsystems.
EJB subsystem tries to search also for the domain name which is used in {{jboss-web.xml}}
and this lookup fails.
Sample configuration:
{code:xml|title=jboss-ejb3.xml}
<jboss:ejb-jar>
<assembly-descriptor><s:security>
<ejb-name>*</ejb-name>
<s:security-domain>seccontext-whoami</s:security-domain>
</s:security></assembly-descriptor>
</jboss:ejb-jar>
{code}
{code:xml|title=jboss-web.xml}
<jboss-web>
<security-domain>seccontext-web</security-domain>
</jboss-web>
{code}
{code:title=application-security-domain-mapping.cli}
/subsystem=ejb3/application-security-domain=seccontext-whoami:add( \
security-domain=ApplicationDomain)
/subsystem=undertow/application-security-domain=seccontext-web:add( \
http-authentication-factory=application-http-authentication)
{code}