Hello,

I also have a problem with Tomahawk ExtensionsFilter.

My Webapp works well as a standalone application. But when I use it as a
portlet (in Liferay Portal) with Apoche Portals JSF bridge, the
ExtensionFilter does not work correctly :

16:09:21,609 ERROR [liferay.portlet.PortletRequestDispatcherImpl]
org.apache.jasper.JasperException:
ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages
not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
org.apache.jasper.JasperException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
       at
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:476)


Here is my web.xml file :

<?xml version="1.0" encoding="UTF-8"?>
<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>my-webapp</display-name>

        <context-param>
         (...)
        </context-param>

        <!-- DEBUT DECLARATIONS FILTRES -->

        <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>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>MyFacesExtensionsFilter</filter-name>
                <url-pattern>*.jsf</url-pattern>
        </filter-mapping>
        
        <filter-mapping>
                <filter-name>MyFacesExtensionsFilter</filter-name>
                <url-pattern>/faces/*</url-pattern>
        </filter-mapping>

        <filter-mapping>
                <filter-name>MyFacesExtensionsFilter</filter-name>
                <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
        </filter-mapping>
        
        <!-- FIN DECLARATIONS FILTRES -->


        <!-- DEBUT DECLARATIONS SERVLETS -->

        <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>

        <!-- FIN DECLARATIONS SERVLETS -->

        <welcome-file-list>
                <welcome-file>index.html</welcome-file>
                <welcome-file>index.htm</welcome-file>
                <welcome-file>index.jsp</welcome-file>
                <welcome-file>default.html</welcome-file>
                <welcome-file>default.htm</welcome-file>
                <welcome-file>default.jsp</welcome-file>
        </welcome-file-list>

        <listener>
                <listener-class>
                        org.apache.myfaces.webapp.StartupServletContextListener
                </listener-class>
        </listener>

</web-app>


Any idea about this ?
Thanks.
-- 
View this message in context: 
http://www.nabble.com/JSF-%28MyFaces%2C-Tomahawk%2C-Sandbox%29----Apache-Pluto---Apache-Portlet-Bridge-for-JSF-tf4261856.html#a12452968
Sent from the Pluto - User mailing list archive at Nabble.com.

Reply via email to