[jboss-jira] [JBoss JIRA] (WFLY-2339) Error occurs when a deployment contains two WARs that each need a different JSF implementation
Farah Juma (JIRA)
issues at jboss.org
Wed Nov 5 10:08:29 EST 2014
[ https://issues.jboss.org/browse/WFLY-2339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13017555#comment-13017555 ]
Farah Juma commented on WFLY-2339:
----------------------------------
Using a jboss-deployment-structure.xml file similar to the one below should allow an EAR with two WARs that each require a different JSF version to be deployed successfully (the file below uses Mojarra 2.1.26 and Mojarra 2.1.27 as an example):
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">
<sub-deployment name="EarWithMultipleWars-war.war">
<exclusions>
<module name="javax.faces.api" slot="main" />
<module name="com.sun.jsf-impl" slot="main" />
<module name="org.jboss.as.jsf-injection" slot="main"/>
</exclusions>
<dependencies>
<module name="javax.faces.api" slot="mojarra-2.1.27" />
<module name="com.sun.jsf-impl" slot="mojarra-2.1.27" />
<module name="org.jboss.as.jsf-injection" slot="mojarra-2.1.27" services="import"/>
</dependencies>
</sub-deployment>
<sub-deployment name="EarWithMultipleWars-war2.war">
<exclusions>
<module name="javax.faces.api" slot="main" />
<module name="com.sun.jsf-impl" slot="main" />
<module name="org.jboss.as.jsf-injection" slot="main"/>
</exclusions>
<dependencies>
<module name="javax.faces.api" slot="mojarra-2.1.26" />
<module name="com.sun.jsf-impl" slot="mojarra-2.1.26" />
<module name="org.jboss.as.jsf-injection" slot="mojarra-2.1.26" services="import"/>
</dependencies>
</sub-deployment>
</jboss-deployment-structure>
{code}
Note that {{org.jboss.jbossfaces.JSF_CONFIG_NAME}} and {{WAR_BUNDLES_JSF_IMPL}} should _not_ be included in the web.xml for either of the WARs packaged in the EAR.
> Error occurs when a deployment contains two WARs that each need a different JSF implementation
> ----------------------------------------------------------------------------------------------
>
> Key: WFLY-2339
> URL: https://issues.jboss.org/browse/WFLY-2339
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Reporter: Farah Juma
> Assignee: Farah Juma
> Priority: Minor
>
> A deployment that contains two WARs that each need a different JSF implementation fails to start. As described in the forum post, using jboss-deployment-structure.xml to add the correct dependencies to the two subdeployments doesn't currently work.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the jboss-jira
mailing list