-
1. Re: how to config richfaces with existing apache myfaces pro
nbelaevski Nov 15, 2008 8:03 AM (in response to tong123123)Yes, copy them as should be (do not forget to add richfaces-ui.jar). If you use extension filters you should configure filters chain so that RichFaces filter is the first one.
-
2. Re: how to config richfaces with existing apache myfaces pro
tong123123 Nov 15, 2008 12:16 PM (in response to tong123123)I have extension filter, the setting is
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
how to configure filters chain so that RichFaces filter is the first one? -
3. Re: how to config richfaces with existing apache myfaces pro
tong123123 Nov 15, 2008 12:32 PM (in response to tong123123)is this correct? put richfaces filter before extensionsFilter in web.xml?
the physical ordering in web.xml is important, is this all I need?
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
REQUEST
FORWARD
INCLUDE
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping> -
4. Re: how to config richfaces with existing apache myfaces pro
tong123123 Nov 15, 2008 12:41 PM (in response to tong123123)OH!! Exception occur after adding MyFaces jar!!
java.lang.NoSuchMethodError: javax.faces.context.FacesContext.getELContext()Ljavax/el/ELContext; at org.richfaces.skin.SkinFactoryImpl.processProperties(SkinFactoryImpl.java:261) at org.richfaces.skin.SkinFactoryImpl.buildSkin(SkinFactoryImpl.java:301) at org.richfaces.skin.SkinFactoryImpl.getSkinByName(SkinFactoryImpl.java:126) at org.richfaces.skin.SkinFactoryImpl.getSkin(SkinFactoryImpl.java:141) at org.ajax4jsf.event.AjaxPhaseListener.beforePhase(AjaxPhaseListener.java:119) at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListenerManager.java:73) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:147) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154) at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260) at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366) at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) 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:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619)
-
5. Re: how to config richfaces with existing apache myfaces pro
ilya_shaikovsky Nov 17, 2008 5:55 AM (in response to tong123123)
is this correct? put richfaces filter before extensionsFilter in web.xml?
the physical ordering in web.xml is important, is this all I need?
yes.. the order is important,. And your definition is ok.
About the exception - please write which server you've using and libraries included in application. -
6. Re: how to config richfaces with existing apache myfaces pro
tong123123 Nov 17, 2008 6:12 AM (in response to tong123123)I known the reason now. I have mix up different version of MyFaces jar in the lib folder.
thanks for your help.