[jboss-jira] [JBoss JIRA] (WFLY-2784) jsf.js file from the MyFaces API JAR can't be found

Farah Juma (JIRA) issues at jboss.org
Thu Feb 6 10:56:29 EST 2014


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

Farah Juma commented on WFLY-2784:
----------------------------------

Adding the following <imports> section to the javax.faces.api dependency in <WILDFLY_HOME>/modules/com/sun/jsf-impl/<MYFACES_SLOT>/module.xml solves the problem:

{code:xml}
<module name="javax.faces.api" slot="${MYFACES_SLOT}">  
    <imports>  
        <include path="META-INF/**"/>  
    </imports>  
</module>
{code} 
                
> jsf.js file from the MyFaces API JAR can't be found
> ---------------------------------------------------
>
>                 Key: WFLY-2784
>                 URL: https://issues.jboss.org/browse/WFLY-2784
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JSF
>    Affects Versions: 8.0.0.CR1
>            Reporter: Tomas Remes
>            Assignee: Farah Juma
>         Attachments: jsf_ajax_keyword_web.war
>
>
> I can see one major issue, when running JSF TCK against MyFaces (2.1.14, 2.2.0-beta) configured as default JSF slot in WildFly. The problem is described here https://community.jboss.org/message/853890 - basically ResourceHandlerImpl is not able to create "jsf.js" resource file, which is avaliable in MyFaces api jar. This results to:
> {noformat}
> Caused by: java.lang.NullPointerException
> 	at org.apache.myfaces.shared.renderkit.html.util.ResourceUtils.renderDefaultJsfJsInlineIfNecessary(ResourceUtils.java:231) [myfaces-impl-2.1.13.jar:2.1.13]
> 	at org.apache.myfaces.shared.renderkit.html.HtmlButtonRendererBase.encodeEnd(HtmlButtonRendererBase.java:138) [myfaces-impl-2.1.13.jar:2.1.13]
> 	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:665) [myfaces-api-2.1.13.jar:2.1.13]
> 	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:545) [myfaces-api-2.1.13.jar:2.1.13]
> 	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541) [myfaces-api-2.1.13.jar:2.1.13]
> 	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541) [myfaces-api-2.1.13.jar:2.1.13]
> 	at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541) [myfaces-api-2.1.13.jar:2.1.13]
> 	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981) [myfaces-impl-2.1.13.jar:2.1.13]
> 	at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:305) [myfaces-impl-2.1.13.jar:2.1.13]
> 	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59) [myfaces-api-2.1.13.jar:2.1.13]
> 	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116) [myfaces-impl-2.1.13.jar:2.1.13]
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241) [myfaces-impl-2.1.13.jar:2.1.13]
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199) [myfaces-api-2.1.13.jar:2.1.13]
> 	... 24 more
> {noformat}

--
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