You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Umer <um...@hotmail.com> on 2008/07/09 11:24:37 UTC

Unable to configure Extension Filter with latest tomahawk-1.1.7-SNAPSHOT

Hi,

I got the following error when i try to configure my application with latest
SNAPSHOT of tomahawk-1.1.7 taken from

http://people.apache.org/repo/m2-snapshot-repository/org/apache/myfaces/tomahawk/tomahawk/1.1.7-SNAPSHOT/

My App Configuration is

MyFaces =  1.1.6
Tomahawk = 1.1.7-SNAPSHOT (3 July 2008)
RichFaces = 3.1.5
Facelets = 1.1.12

---------- ERROR -----------------------
java.lang.IllegalStateException: ExtensionsFilter not correctly configured.
JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
	at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:389)
	at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:349)
	at
org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:279)
	at
org.apache.myfaces.webapp.filter.TomahawkFacesContextWrapper.<init>(TomahawkFacesContextWrapper.java:100)
	at
org.apache.myfaces.webapp.filter.TomahawkFacesContextFactory.getFacesContext(TomahawkFacesContextFactory.java:36)
	at com.ezymed.emr.web.LoginFilter.getFacesContext(LoginFilter.java:105)
	at com.ezymed.emr.web.LoginFilter.doFilter(LoginFilter.java:69)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
	at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Thread.java:595)
[7/9/08 15:17:50:528 GMT+05:00]  [ERROR] - Servlet.service() for servlet
Faces Servlet threw exception

---------- ERROR END ------------------


My Extension Filter mapping in web.xml is

------------ WEB.XML ---------------------

<filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>
org.apache.myfaces.component.html.util.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>
    </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/myFacesExtensionResource/*</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-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.xhtml</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>

------------ WEB.XML END ---------------------


Note:  When i replace the latest SNAPSHOT with a month old version of
tomahawk-1.1.7-SNAPSHOT, it works perfectly fine with same web.xml.
Similarly its also working with all the previous tomahawk releases.

It would be gr8 if somebody help me out of this situation.
Kind Regards,
Umer
-- 
View this message in context: http://www.nabble.com/Unable-to-configure-Extension-Filter-with-latest-tomahawk-1.1.7-SNAPSHOT-tp18357574p18357574.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.