2 Replies Latest reply on Jul 24, 2008 9:36 AM by ankurda

    Filter mapping errors

    jpantona

      When I am trying to use ajax4jsf, I am getting the following error:

      IllegalStateException: Filter mapping for chameleon filter ajax4jsf do not contain wildcard prefix or suffix.

      Any ideas?

      Here is my web.xml:

      <?xml version="1.0" encoding="UTF-8" ?>

      <!DOCTYPE web-app PUBLIC
      "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd" >

      <!-- The web.xml file is a configuration file used to control the behavior of WebLogic server.
      In most cases, you will not need to modify this file. For more information on web.xml, please
      consult the Web.xml Deployment Descriptor Elements chapter of the "Developing WebLogic Server
      Applications" documentation on edocs.bea.com. -->


      <web-app>
       <display-name>Workshop Application</display-name>
      
      
      
       <context-param>
       <param-name>com.sun.faces.verifyObjects</param-name>
       <param-value>true</param-value>
       </context-param>
       <context-param>
       <param-name>com.sun.faces.validateXml</param-name>
       <param-value>true</param-value>
       </context-param>
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>client</param-value>
       </context-param>
      
      
       <!-- Standard Action Servlet Configuration (with debugging) -->
       <servlet>
       <servlet-name>action</servlet-name>
       <servlet-class>com.bea.wlw.netui.pageflow.PageFlowActionServlet</servlet-class>
       <init-param>
       <param-name>config</param-name>
       <param-value>/WEB-INF/.pageflow-struts-generated/jpf-struts-config.xml</param-value>
       </init-param>
       <init-param>
       <param-name>config/-global</param-name>
       <param-value>/WEB-INF/.pageflow-struts-generated/jpf-struts-config--global.xml</param-value>
       </init-param>
       <init-param>
       <param-name>debug</param-name>
       <param-value>2</param-value>
       </init-param>
       <init-param>
       <param-name>detail</param-name>
       <param-value>2</param-value>
       </init-param>
       <load-on-startup>2</load-on-startup>
       </servlet>
      
       <!-- Struts Action Servlet Mappings -->
       <!-- Note that because Struts takes the *last* mapping here as the extension to add to
       actions posted from forms, we must have *.do come after *.jpf. -->
       <servlet-mapping>
       <servlet-name>action</servlet-name>
       <url-pattern>*.jpf</url-pattern>
       </servlet-mapping>
      
       <servlet-mapping>
       <servlet-name>action</servlet-name>
       <url-pattern>*.do</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>*.jsf</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>
      
      
       <filter>
       <filter-name>PageFlowJspFilter</filter-name>
       <filter-class>com.bea.wlw.netui.pageflow.PageFlowJspFilter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>PageFlowJspFilter</filter-name>
       <url-pattern>*.jsp</url-pattern>
       </filter-mapping>
      
       <filter>
       <filter-name>ExtensionsFilter</filter-name>
       <filter-class>
       org.apache.myfaces.component.html.util.ExtensionsFilter
       </filter-class>
       <init-param>
       <param-name>uploadMaxFileSize</param-name>
       <param-value>1m</param-value>
       </init-param>
       <init-param>
       <param-name>uploadThresholdSize</param-name>
       <param-value>100k</param-value>
       </init-param>
       </filter>
      
       <filter-mapping>
       <filter-name>ExtensionsFilter</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       </filter-mapping>
       <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>
      
       <listener>
       <listener-class>
       com.bea.wlw.runtime.core.servlet.WebappContextListener
       </listener-class>
       </listener>
      
       <welcome-file-list>
       <welcome-file>index.jsp</welcome-file>
       </welcome-file-list>
      
       <error-page>
       <error-code>500</error-code>
       <location>/error.jsp</location>
       </error-page>
      
      
       <!-- Define the NetUI tag library TLDs -->
       <taglib>
       <taglib-uri>netui-tags-html.tld</taglib-uri>
       <taglib-location>/WEB-INF/netui-tags-html.tld</taglib-location>
       </taglib>
      
       <taglib>
       <taglib-uri>netui-tags-databinding.tld</taglib-uri>
       <taglib-location>/WEB-INF/netui-tags-databinding.tld</taglib-location>
       </taglib>
      
       <taglib>
       <taglib-uri>netui-tags-template.tld</taglib-uri>
       <taglib-location>/WEB-INF/netui-tags-template.tld</taglib-location>
       </taglib>
      
       <context-param>
       <param-name>org.ajax4jsf.SKIN</param-name>
       <param-value>classic</param-value>
       </context-param>
      
       <filter>
       <display-name>Ajax4jsf Filter</display-name>
       <filter-name>ajax4jsf</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
       </filter>
      
       <filter-mapping>
       <filter-name>ajax4jsf</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       </filter-mapping>
      
      </web-app>