Salve Galera do Portal Java.
É o seguinte galera, estou tentando colocar richfaces na minha aplicação, fiz o hello word dos cara e quando joguei o richfaces para aplicação deu pau.
Segue o meu web.xml
<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>a4jEchoText</display-name>
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>
/WEB-INF/faces-config-beans.xml,
/WEB-INF/faces-config-navigation.xml
</param-value>
</context-param>
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<listener>
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
</listener>
<!-- Faces Servlet -->
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
</web-app>
O erro que esta dando quando mando executar a pagina
javax.servlet.ServletException: Resources framework is not initialised, check web.xml for Filter configuration
javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:64)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:224)
root cause
javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration
org.ajax4jsf.resource.ResourceBuilderImpl.getWebXml(ResourceBuilderImpl.java:121)
org.ajax4jsf.resource.ResourceBuilderImpl.getUri(ResourceBuilderImpl.java:310)
org.ajax4jsf.resource.InternetResourceBase.getUri(InternetResourceBase.java:215)
org.ajax4jsf.renderkit.HeaderResourcesRendererBase.getUrisSet(HeaderResourcesRendererBase.java:101)
org.ajax4jsf.renderkit.HeaderResourcesRendererBase.getHeaderScripts(HeaderResourcesRendererBase.java:54)
org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:61)
org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:94)
org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:94)
org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:94)
org.ajax4jsf.context.ViewResources.collect(ViewResources.java:41)
org.ajax4jsf.context.AjaxContextImpl.processHeadResources(AjaxContextImpl.java:398)
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:245)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:64)
org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:224)
Alguem já se deparou com esse erro?
Mais uma vez valeu galera!