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