[jboss-jira] [JBoss JIRA] (WFLY-9708) Wildfly 11.0.0.Final JSF 1.2 configuration error

Luis Canales (JIRA) issues at jboss.org
Thu Jan 18 11:08:00 EST 2018


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

Luis Canales commented on WFLY-9708:
------------------------------------

Hi Martin,
I have this in my jboss-all.xml (I'm not using CDI in my application):

_<jboss umlns="urn:jboss:1.0">
    <weld xmlns="urn:jboss:weld:1.0" require-bean-descriptor="true"/>
</jboss>_

The same application runs in Wildfly 10.1.0. I've build the 3 JSF1.2 modules (jsf-api, jsf-impl and jsf-injection) for both Wildfly (10.1.0, 11.0.0) according to the tutorial.

I think "WeldApplication" is bean instantiated when the module is loaded. In Wildfly 10.1.0 "WeldApplication" extends from "ForwardingApplication" and this class is included inside the module. However, in Wildfly 11.0.0 it extends from "ApplicationWrapper" (dependent from JSF2.0).

> Wildfly 11.0.0.Final JSF 1.2 configuration error
> ------------------------------------------------
>
>                 Key: WFLY-9708
>                 URL: https://issues.jboss.org/browse/WFLY-9708
>             Project: WildFly
>          Issue Type: Bug
>          Components: CDI / Weld, JSF
>    Affects Versions: 11.0.0.Final
>            Reporter: Luis Canales
>            Assignee: Martin Kouba
>            Priority: Optional
>         Attachments: log.txt
>
>
> Since WFLY-8815, the class WeldApplication extends ApplicationWrapper. The class "ApplicationWrapper" was created in JSF2.0, so when I try to build JSF1.2 modules (see https://developer.jboss.org/wiki/StepsToAddAnyNewJSFImplementationOrVersionToWildFly) and deploy a JSF1.2 application, I get this error:
> _java.lang.NoClassDefFoundError: Failed to link org/jboss/as/jsf/injection/weld/WeldApplication (Module "org.jboss.as.jsf-injection:mojarra-1.2_15" from local module loader @3aa9e816 (finder: local module finder @17d99928 (roots: C:\Java\wildfly-11.0.0.Final.gts\modules,C:\Java\wildfly-11.0.0.Final.gts\modules\system\layers\base))): javax/faces/application/ApplicationWrapper_
> If I change WeldApplication extends to ForwardingApplication and rebuild modules, the application runs OK.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list