0 Replies Latest reply on Aug 18, 2010 2:02 PM by Valfrido Silva

    ResourceNotFoundException: Resource not registered

    Valfrido Silva Newbie

      hello!

       

      I am with problem:

      org.ajax4jsf.resource.ResourceNotFoundException: Resource not  registered : org/richfaces/renderkit/html/error404

       

      in my console.

       

      I think it's about Richfaces' problem, any configuration wrong or missing. I don´t know what it's happening.

      I looked many posts here, but i didn´t find any solution for me.

       

      I'm using:

       

      Richfaces 3.3.0.GA,

      JSF 1.2_12,

      Jboss-eap-5.0

      JDK 1.6

       

      Look at my web.xml

       

       

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
        <description>Facelets StarterKit</description>  
        <context-param>
          <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
          <param-value>.xhtml</param-value>
        </context-param>
        <context-param>
          <param-name>facelets.REFRESH_PERIOD</param-name>
          <param-value>2</param-value>
        </context-param>
        <context-param>
          <param-name>facelets.RECREATE_VALUE_EXPRESSION_ON_BUILD_BEFORE_RESTORE</param-name>
          <param-value>false</param-value>
        </context-param>
        <context-param>
          <param-name>facelets.DEVELOPMENT</param-name>
          <param-value>false</param-value>
        </context-param>
        <context-param>
          <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
          <param-value>server</param-value>
        </context-param>
        <context-param>
          <description>Only applicable if state saving method is &quot;server&quot; (= default).  
            Defines the amount (default = 20) of the latest views are stored in session.</description>
          <param-name>org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION</param-name>
          <param-value>40</param-value>
        </context-param>
        <context-param>
          <param-name>com.sun.faces.validateXml</param-name>
          <param-value>false</param-value>
        </context-param>
        <context-param>
          <param-name>com.sun.faces.verifyObjects</param-name>
          <param-value>false</param-value>
        </context-param>
        <context-param>
          <param-name>org.richfaces.SKIN</param-name>
          <param-value>blueSky</param-value>
        </context-param>
        <context-param>
          <param-name>org.richfaces.CONTROL_SKINNING</param-name>
          <param-value>enable</param-value>
        </context-param>
        <context-param>
          <param-name>org.richfaces.CONTROL_SKINNING_CLASSES</param-name>
          <param-value>enable</param-value>
        </context-param>
        <context-param>
          <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
          <param-value>com.sun.facelets.FaceletViewHandler</param-value>
        </context-param>
        <context-param>
          <param-name>javax.faces.CONFIG_FILES</param-name>
          <param-value>/WEB-INF/faces-config.xml,/WEB-INF/navigation-menu.xml</param-value>
        </context-param>
        <filter>
          <display-name>RichFaces Filter</display-name>
          <filter-name>richfaces</filter-name>
          <filter-class>org.ajax4jsf.Filter</filter-class>
          <init-param>      
            <param-name>forceparser</param-name>
            <param-value>false</param-value>
          </init-param>
          <init-param>     
            <param-name>maxRequestSize</param-name>
            <param-value>100000000</param-value>
          </init-param>
          <init-param>     
            <param-name>createTempFiles</param-name>
            <param-value>false</param-value>
          </init-param>
        </filter>
        <filter-mapping>
          <filter-name>exception</filter-name>
          <url-pattern>/home.jsf</url-pattern>
          <url-pattern>/login.jsf</url-pattern>
          <url-pattern>/pages/*</url-pattern>
        </filter-mapping>
        <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> 
        <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
        </servlet>  
        <servlet>
          <display-name>
           Apache-Axis Servlet</display-name>
          <servlet-name>AxisServlet</servlet-name>
          <servlet-class>
           org.apache.axis.transport.http.AxisServlet</servlet-class>
        </servlet>
        <servlet>
          <display-name>
           Axis Admin Servlet</display-name>
          <servlet-name>AdminServlet</servlet-name>
          <servlet-class>
           org.apache.axis.transport.http.AdminServlet</servlet-class>
          <load-on-startup>100</load-on-startup>
        </servlet>
        <servlet>
          <servlet-name>ImageServlet</servlet-name>
          <servlet-class>net.sf.jasperreports.j2ee.servlets.ImageServlet</servlet-class>
        </servlet>
        <servlet-mapping>
          <servlet-name>ImageServlet</servlet-name>
          <url-pattern>/image</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.jsf</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>cotacaoAereo</servlet-name>
          <url-pattern>*.do</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>AxisServlet</servlet-name>
          <url-pattern>/servlet/AxisServlet</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>AxisServlet</servlet-name>
          <url-pattern>*.jws</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>AxisServlet</servlet-name>
          <url-pattern>/services/*</url-pattern>
        </servlet-mapping>
        <servlet-mapping>
          <servlet-name>AdminServlet</servlet-name>
          <url-pattern>/servlet/AdminServlet</url-pattern>
        </servlet-mapping>
        <session-config>
          <session-timeout>30</session-timeout>
        </session-config>
        <welcome-file-list>
          <welcome-file>index.jsp</welcome-file>
        </welcome-file-list>
        <error-page>
          <exception-type>java.lang.SecurityException</exception-type>
          <location>/login.jsf</location>
        </error-page>
        <error-page>
          <error-code>404</error-code>
          <location>/redirectError404.jsp</location>
        </error-page>
        <error-page>
          <error-code>500</error-code>
          <location>/error500.jsf</location>
        </error-page>
        <login-config>
          <auth-method>BASIC</auth-method>
        </login-config>  
      </web-app>
      

       

       

       

      Anybody knows any solution?

       

       

      thanks!