[jboss-jira] [JBoss JIRA] (WFLY-9126) Deployment fails when application domain names referrencing one Elytron domain are different in Undertow and EJB subsystems

Jan Kalina (JIRA) issues at jboss.org
Tue Aug 1 08:44:00 EDT 2017


    [ https://issues.jboss.org/browse/WFLY-9126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13442723#comment-13442723 ] 

Jan Kalina commented on WFLY-9126:
----------------------------------

There is misconfiguration in deployment: *jboss-ejb3.xml* is ignored because EjbJarParsingDeploymentUnitProcessor search it only in WEB-INF directory, because it is WAR archive.
see https://github.com/wildfly/wildfly/blob/master/ejb3/src/main/java/org/jboss/as/ejb3/deployment/processors/EjbJarParsingDeploymentUnitProcessor.java#L199
Deployment is successful if I move *jboss-ejb3.xml* into WEB-INF.

> 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: Jan Kalina
>            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}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list