Mojarra JSF 2.1.9异常,在加载具有复合组件的页面时 [英] Mojarra JSF 2.1.9 exception while loading a page which has got composite component

查看:84
本文介绍了Mojarra JSF 2.1.9异常,在加载具有复合组件的页面时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Web应用程序上的Mojarra JSF 2.0升级到Mojarra JSF2.1.9的最新稳定版本.页面在Mojarra的早期版本中可以正常加载.但是使用新版本时,在加载包含复合组件的JSF页面时,我会收到以下错误消息.

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) 

我在Web应用程序中的位置"/资源/组件"处定义了一个复合元素"webContent",该元素以前用于Mojarra JSF的早期版本.任何线索,为什么我会发生此崩溃.

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.

推荐答案

我发现了我的真正问题所在,并找到了解决该问题的正确方法:

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

我正在使用Webspehere 7服务器,它仅支持"Java Servlet 2.5". 从2.1.1开始,所有版本的JSF Mojarra的先决条件都需要"Java Servlet 3.0".

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是支持"Java Servlet2.5"的最新稳定版本.当我使用Mojarra 2.0.9时,我没有任何问题,一切正常.

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.

谢谢, 乔

这篇关于Mojarra JSF 2.1.9异常,在加载具有复合组件的页面时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆