[jboss-jira] [JBoss JIRA] (WFLY-9708) Wildfly 11.0.0.Final JSF 1.2 configuration error
Martin Kouba (JIRA)
issues at jboss.org
Thu Jan 18 08:07:00 EST 2018
[ https://issues.jboss.org/browse/WFLY-9708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13520756#comment-13520756 ]
Martin Kouba commented on WFLY-9708:
------------------------------------
Weld 2.x (Java EE 7) is not supposed to work with JSF 1.2 (Java EE 5). Do you use CDI in your application? If not, you may disable CDI completely:
1. If your app does not contain any {{beans.xml}}, it is possible to [suppress implicit bean archives|https://docs.jboss.org/author/display/WFLY/CDI+Reference#CDIReference-Suppressingimplicitbeanarchives]
2. Otherwise use {{jboss-deployment-structure}} to exclude the Weld subsystem (like in [this example|https://developer.jboss.org/people/mkouba/blog/2014/03/04/lighten-the-deployment-of-a-cdi-application-on-wildfly])
> 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