Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
208 views
in Technique[技术] by (71.8m points)

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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...