You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ndnguy <pr...@gmail.com> on 2006/11/01 06:13:19 UTC

t:jscookmenu error

Hi,
 I am getting ExtensionsFilter not correctly configured error using
t:jscookmenu. I have all the required extensions in my web.xml. I am not
sure what I'm missing, please advice.

java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html

Here's my extensions filter snippet from web.xml

<!-- Extensions Filter -->
	<filter>
       <filter-name>extensionsFilter</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>uploadMaxFileSize</param-name>
               <param-value>100m</param-value>
       </init-param>
       <init-param>
               <description>
                       Set the threshold size - files below this limit are
                       stored in memory, files above this limit are stored
on
                       disk.
                       Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1
GB
               </description>
               <param-name>uploadThresholdSize</param-name>
               <param-value>100k</param-value>
       </init-param>
       <!--
       <init-param>
               <param-name>uploadRepositoryPath</param-name>
               <param-value>/temp</param-value>
               <description>Set the path where the intermediary files will
be stored.
               </description>
       </init-param>
       -->
	</filter>
	<filter-mapping>
	    <filter-name>extensionsFilter</filter-name>
    	<url-pattern>*.jsf</url-pattern>
	</filter-mapping>
	<filter-mapping>
	        <filter-name>extensionsFilter</filter-name>
	        <url-pattern>*.faces</url-pattern>
	</filter-mapping>
	<filter-mapping>
	        <filter-name>extensionsFilter</filter-name>
	        <url-pattern>/faces/*</url-pattern>
	</filter-mapping>
	<filter-mapping>
	    <filter-name>extensionsFilter</filter-name>
    	<!-- servlet-name must match the name of your
javax.faces.webapp.FacesServlet entry -->
    	<servlet-name>Faces Servlet</servlet-name>
	</filter-mapping>

	<!-- extension mapping for serving page-independent resources (javascript,
stylesheets, images, etc.)  -->
	<filter-mapping>
    	<filter-name>extensionsFilter</filter-name>
	    <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
	</filter-mapping>

-- 
View this message in context: http://www.nabble.com/t%3Ajscookmenu-error-tf2550307.html#a7108243
Sent from the MyFaces - Users mailing list archive at Nabble.com.