*sigh* I'm lost on this...

I went to:

http://myfaces.apache.org/tomahawk/extensionsFilter.html

I removed the elements as suggested and added:

<filter-mapping>
    <filter-name>MyFacesExtensionsFilter</filter-name>
 
<url-pattern>/transactionbrowser/myFacesExtensionResource/*</url-pattern
>
</filter-mapping>
 
And I still return the same error.

My updated web.xml file is:

<?xml version="1.0" encoding="UTF-8"?>
<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";>
    <context-param>
        <param-name>com.sun.faces.verifyObjects</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>com.sun.faces.validateXml</param-name>
        <param-value>true</param-value>
    </context-param>
    <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    <context-param>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
    </context-param>    
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/transactionbrowser/*</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>
    <!-- Extensions Filter -->
    <filter>
        <filter-name>MyFacesExtensionsFilter</filter-name>
 
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-
class>
        <init-param>
            <param-name>maxFileSize</param-name>
            <param-value>20m</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
        <servlet-name>Faces Servlet</servlet-name>
    </filter-mapping>
    <filter-mapping>
        <filter-name>MyFacesExtensionsFilter</filter-name>
 
<url-pattern>/transactionbrowser/myFacesExtensionResource/*</url-pattern
>
    </filter-mapping>
</web-app>

Thanks for looking at this!

--Todd

-----Original Message-----
From: Mike Kienenberger [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 04, 2006 2:43 PM
To: MyFaces Discussion
Subject: Re: 1.1.3 returns the error: java.lang.IllegalStateException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF
pages not covered.

On 5/4/06, Todd Patrick <[EMAIL PROTECTED]> wrote:
>
> I downloaded 1.1.3 Nightly build and I am trying to configure my 
> web.xml file as such:
>
> <?xml version="1.0" encoding="UTF-8"?> <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";>
>     <context-param>
>         <param-name>com.sun.faces.verifyObjects</param-name>
>         <param-value>true</param-value>
>     </context-param>
>     <context-param>
>         <param-name>com.sun.faces.validateXml</param-name>
>         <param-value>true</param-value>
>     </context-param>
>     <context-param>
>         <param-name>javax.faces.CONFIG_FILES</param-name>
>         <param-value>/WEB-INF/faces-config.xml</param-value>
>     </context-param>
>     <context-param>
>         <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
>         <param-value>client</param-value>
>     </context-param>
>     <context-param>
>
> <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
>         <param-value>false</param-value>
>     </context-param>
>     <servlet>
>         <servlet-name>Faces Servlet</servlet-name>
>         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>Faces Servlet</servlet-name>
>         <url-pattern>/transactionbrowser/*</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>
>     <!-- Extensions Filter -->
>     <filter>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>
>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-
class>
>         <init-param>
>             <param-name>maxFileSize</param-name>
>             <param-value>20m</param-value>
>         </init-param>
>     </filter>
>     <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <servlet-name>Faces Servlet</servlet-name>
>     </filter-mapping>
>     <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <url-pattern>/transactionbrowser/*</url-pattern>
>     </filter-mapping>
> </web-app>
>
>
>
> However, I keep receiving the error message:
>
> java.lang.IllegalStateException: ExtensionsFilter not correctly
configured.
> JSF mapping missing. JSF pages not covered. Please see:
> http://myfaces.apache.org/tomahawk/extensionsFilter.html
>
>
> I found a similar thread about 1.1.2, however how do I fix this issue 
> in 1.1.3?

Follow the link given :)

Basically, you've double-configured the part that modifies your JSF
pages, but haven't configured the part that serves independent
resources.

Delete this one:

>     <filter-mapping>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>         <url-pattern>/transactionbrowser/*</url-pattern>
>     </filter-mapping>

And add in the one on the web page.

Reply via email to