I think you should configure your ExtensionFilter so that is filters your
FacesServlet
In this case
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>
-----Original Message-----
From: weull [mailto:[EMAIL PROTECTED]
Sent: Friday, June 15, 2007 8:56 AM
To: [email protected]
Subject: Help With Tomahawk and web.xml
I have the following web.xml (I'm using Spring, MyFaces 1.1.5 and the
jsf-spring integration library) and attempting to use Tomahawk 1.1.6:
<?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-clas
s>
<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>*.jsp</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</liste
ner-class>
</listener>
<listener>
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</lis
tener-class>
</listener>
<listener>
<listener-class>de.mindmatters.faces.spring.context.ContextLoaderListener</l
istener-class>
</listener>
<servlet>
<servlet-name>WebCore</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-cl
ass>
<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>
I'm getting the infamous "ExtensionsFilter not correctly configured..."
exception no matter what I try to do. Any ideas on what I've done wrong?
--
View this message in context:
http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a1113155
5
Sent from the MyFaces - Users mailing list archive at Nabble.com.
__________ NOD32 2330 (20070615) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com.hk