Mojarra JSF 2.1.9 exception while loading a page which has got composite component

女生的网名这么多〃 提交于 2019-12-13 03:38:26

问题


I am upgrading my Mojarra JSF 2.0 on my web app to the latest stable version of Mojarra JSF2.1.9 . The pages were loading ok with the earlier version of Mojarra. But with the new version I am getting the following error message while loading a JSF page which has got composite components.

 /faces/page.xhtml @8,62 Tag Library supports namespace: http://java.sun.com/jsf/composite/components, but no tag was defined for name: webContent
javax.faces.webapp.FacesServlet.service(FacesServlet.java:606)
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1597)
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:131) 

I have a composite element 'webContent' defined within my web application at the location'/resources/components' and it used to work with the earlier version of Mojarra JSF. Any clue , why am I getting this crash.


回答1:


I have found what my real issue was and the correct soultion to the problem:

I am using Webspehere 7 server and it suppports only 'Java Servlet 2.5'. The pre-requisite for all versions of JSF Mojarra from 2.1.1 onward need 'Java Servlet 3.0'.

Mojarra 2.0.9 is the most recent stable version which supports 'Java Servlet2.5'. When I used Mojarra 2.0.9 , I had no issues, everything worked well.

Thanks, Joe



来源:https://stackoverflow.com/questions/11029472/mojarra-jsf-2-1-9-exception-while-loading-a-page-which-has-got-composite-compone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!