[jboss-jira] [JBoss JIRA] (WFLY-1785) WAR_BUNDLES_JSF_IMPL does not work for EAR files
Stan Silvert (JIRA)
jira-events at lists.jboss.org
Mon Aug 26 16:39:26 EDT 2013
[ https://issues.jboss.org/browse/WFLY-1785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stan Silvert reassigned WFLY-1785:
----------------------------------
Assignee: Stuart Douglas (was: Stan Silvert)
Stuart, can you take a look at this? I think I have narrowed down the problem.
JSF includes some CDI Extensions, such as this: https://github.com/jboss/mojarra/blob/2.2.2-jbossorg-1/jsf-ri/src/main/java/com/sun/faces/flow/FlowCDIExtension.java
If you look at line 101 you see where it is trying to using the ServiceLoader to get one of its own services from the same jar as the Extension. This jar is the JSF Impl jar located in the com.sun.jsf-impl module.
The problem is that this doesn't work in an EAR environment. I'm guessing it's a TCCL issue in Weld or the Weld subsystem.
> WAR_BUNDLES_JSF_IMPL does not work for EAR files
> ------------------------------------------------
>
> Key: WFLY-1785
> URL: https://issues.jboss.org/browse/WFLY-1785
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 8.0.0.Alpha3
> Environment: Windows 7 Professional. Service Pack 1. 32 Bit.
> Reporter: William Lovett
> Assignee: Stuart Douglas
> Priority: Minor
> Fix For: 8.0.0.Alpha4
>
>
> Hello Learned and Astonishly Charming JBoss Associates,
> I've been trying for quite some time now to get my successfully deployed WAR to become a successfully deployed EAR. Much to my chagrin, this has been my white whale, and it just might kill me.
> In a nutshell, the attached EAR file contains a WAR. If you deploy that WAR file everything works smooth as butter. As soon as you put it in an EAR format however, you get the following well placed riposte:
> 19:33:57,513 WARN [org.jboss.as.jsf] (MSC service thread 1-2) JBAS012603: Unknown JSF version 'WAR_BUNDLES_JSF_IMPL'. Default version 'main' will be used instead.
> Not cool, JBoss. Not cool.
> I've tried moving the jars to different places in the WAR/EAR. I've tried using Manifest files. I've tried colorfully adorned four letter expletives. JBoss is unmoved. Does anyone know why JBoss is rejecting my JSF advances? Can the relationship be fixed?
> Using EAP 6.1 which I believe is equivalent to AS 7.2.
> Thanks in advance,
> Will
> PS: The forum didn't like me attaching a 1.8 meg file so here's a download link instead
> http://www.williverstravels.com/JDev/Forums/Threads/230850/TestEar.ear
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list