| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1915 人关注过本帖
标题:jsf报错Both MyFaces and the RI are on your classpath
只看楼主 加入收藏
liuwenqi
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2009-9-13
收藏
 问题点数:0 回复次数:1 
jsf报错Both MyFaces and the RI are on your classpath
新来的大家多多关照
jsf+spring+hibernate+myfaces
运行时报错:

ERROR - Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
ERROR - Exception in PhaseListener RESTORE_VIEW 1 beforePhase.
java.lang.NullPointerException
    at com.sun.faces.lifecycle.ELResolverInitPhaseListener.beforePhase(ELResolverInitPhaseListener.java:100)
    at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73)
    at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:93)
    at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)
ERROR - Exception in PhaseListener RENDER_RESPONSE 6 beforePhase.
java.lang.NullPointerException
    at com.sun.faces.lifecycle.ELResolverInitPhaseListener.beforePhase(ELResolverInitPhaseListener.java:100)
    at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73)
    at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:134)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)


[ 本帖最后由 liuwenqi 于 2009-9-13 22:27 编辑 ]
搜索更多相关主题的帖子: MyFaces Both jsf classpath 
2009-09-13 22:26
iamfangfang
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2010-3-4
收藏
得分:0 
,你代码里跟一下,看是到那句出的错!
2010-03-04 22:06
快速回复:jsf报错Both MyFaces and the RI are on your classpath
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.137025 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved