myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: Help With Tomahawk and web.xml
Date Fri, 15 Jun 2007 14:53:48 GMT
It's not set up correctly.

The first filter mapping must point to the same thing as your faces servlet.
The second filter mapping must point to a specific url:
/faces/myFacesExtensionResource/*

You can find the detailed directions for setting it up here.

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


On 6/15/07, weull <weull@hotmail.com> wrote:
>
> Changing the filter to map to *.faces give me this:
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <!-- This is where Servlets are configured and mapped. -->
>
> <web-app id="WebApp_ID" 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>com.p21csi.webcore.base</display-name>
>
>         <filter>
>         <filter-name>MyFacesExtensionsFilter</filter-name>
>
> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
>
>     <init-param>
>            <description>Set the size limit for uploaded files.
>             Format: 10 - 10 bytes
>                     10k - 10 KB
>                     10m - 10 MB
>                     1g - 1 GB
>         </description>
>         <param-name>maxFileSize</param-name>
>         <param-value>20m</param-value>
>
>     </init-param>
>         </filter>
>
>         <!-- extension mapping for adding <script/>, <link/>, and other
resource
> tags to JSF-pages  -->
>         <filter-mapping>
>             <filter-name>MyFacesExtensionsFilter</filter-name>
>             <!-- servlet-name must match the name of your
> javax.faces.webapp.FacesServlet entry -->
>             <url-pattern>*.faces</url-pattern>
>         </filter-mapping>
>
>         <!-- extension mapping for serving page-independent resources (javascript,
> stylesheets, images, etc.)  -->
>         <filter-mapping>
>             <filter-name>MyFacesExtensionsFilter</filter-name>
>             <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>         </filter-mapping>
>
>
>
>         <listener>
>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
>         </listener>
>         <listener>
>
> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
>     </listener>
>         <listener>
>
> <listener-class>de.mindmatters.faces.spring.context.ContextLoaderListener</listener-class>
>         </listener>
>         <servlet>
>         <servlet-name>WebCore</servlet-name>
>
> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
>         <load-on-startup>1</load-on-startup>
>         </servlet>
>
>         <servlet-mapping>
>         <servlet-name>WebCore</servlet-name>
>         <url-pattern>*.html</url-pattern>
>         </servlet-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-mapping>
>       <servlet-name>Faces Servlet</servlet-name>
>       <url-pattern>*.faces</url-pattern>
>    </servlet-mapping>
> </web-app>
>
> Which unfortunately throws the same "ExtensionsFilter not configured
> correctly" exception.
> --
> View this message in context: http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11138912
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message