4 Replies Latest reply on Feb 20, 2006 5:51 PM by Gabrielle Crawford-Oracle

    WARNING The AdfFacesFilter has not been installed.  ADF Faces requires this

    278408
      The message:
      WARNING The AdfFacesFilter has not been installed. ADF Faces requires this filter for proper execution.

      is being displayed when I run my program. The program runs fine but I am wondering what causes this message and what can I do to solve it. I noticed that others have had this problem but there was no solution provided in their thread.

      Thanks,
      Thom
        • 1. Re: WARNING The AdfFacesFilter has not been installed.  ADF Faces requires
          458581
          Hi Thom:

          You should have something like this in your web.xml file:

          <filter>
          <filter-name>adfFaces</filter-name>
          <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
          </filter>
          <filter>
          <filter-name>adfBindings</filter-name>
          <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
          </filter>
          <filter>
          <filter-name>ADFBindingFilter</filter-name>
          <filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
          <init-param>
          <param-name>encoding</param-name>
          <param-value>UTF-8</param-value>
          </init-param>
          </filter>
          <filter-mapping>
          <filter-name>adfFaces</filter-name>
          <servlet-name>Faces Servlet</servlet-name>
          </filter-mapping>
          <filter-mapping>
          <filter-name>adfBindings</filter-name>
          <url-pattern>*.jsp</url-pattern>
          </filter-mapping>
          <filter-mapping>
          <filter-name>adfBindings</filter-name>
          <url-pattern>*.jspx</url-pattern>
          </filter-mapping>
          <filter-mapping>
          <filter-name>ADFBindingFilter</filter-name>
          <url-pattern>*.jsp</url-pattern>
          </filter-mapping>
          <filter-mapping>
          <filter-name>ADFBindingFilter</filter-name>
          <url-pattern>*.jspx</url-pattern>
          </filter-mapping>

          As well as:
          <servlet>
          <servlet-name>resources</servlet-name>
          <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
          </servlet>
          <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>/faces/*</url-pattern>
          </servlet-mapping>
          <servlet-mapping>
          <servlet-name>resources</servlet-name>
          <url-pattern>/adf/*</url-pattern>
          </servlet-mapping>


          This will ensure that the ADF Faces context gets initialized on the first call to your controller servlet. See the General Installation Section of the page at: http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/installation.html for more detail.

          Johnny Lee
          • 2. Re: WARNING The AdfFacesFilter has not been installed.  ADF Faces requires
            278408
            What am I missing?
            I have changed some of this to match what is in the preceeding response but then I get a message that says the context was not reset or something.

            Here is my current web.xml

            <?xml version = '1.0' encoding = 'windows-1252'?>
            <web-app 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" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee">
            <description>Empty web.xml file for Web Application</description>
            <filter>
            <filter-name>adfFaces</filter-name>
            <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
            </filter>
            <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <url-pattern>*.jsp</url-pattern>
            </filter-mapping>
            <filter-mapping>
            <filter-name>adfFaces</filter-name>
            <url-pattern>*.jspx</url-pattern>
            </filter-mapping>
            <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
            </servlet>
            <servlet>
            <servlet-name>resources</servlet-name>
            <servlet-class>oracle.adf.view.faces.webapp.ResourceServlet</servlet-class>
            </servlet>
            <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
            </servlet-mapping>
            <servlet-mapping>
            <servlet-name>resources</servlet-name>
            <url-pattern>/adf/*</url-pattern>
            </servlet-mapping>
            <session-config>
            <session-timeout>35</session-timeout>
            </session-config>
            <mime-mapping>
            <extension>html</extension>
            <mime-type>text/html</mime-type>
            </mime-mapping>
            <mime-mapping>
            <extension>txt</extension>
            <mime-type>text/plain</mime-type>
            </mime-mapping>
            </web-app>
            • 3. Re: WARNING The AdfFacesFilter has not been installed.  ADF Faces requires this
              278408
              Any help would be greatly appreciated. Have been researching for awhile on other forums and websites.

              Thanks,
              Thom
              • 4. Re: WARNING The AdfFacesFilter has not been installed.  ADF Faces requires
                Gabrielle Crawford-Oracle
                http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/doc/installation.html#General%20Installation

                There is a demo war with a web.xml that work that can be downloaded from:

                http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/exchange/jsf/index.html