users@glassfish.java.net

Glassfish 3.0.1 Servlet filter properties

From: <glassfish_at_javadesktop.org>
Date: Thu, 16 Sep 2010 10:01:38 PDT

Hello,
I have the following configuration for servlet filter in the web.xml

    <filter>
        <description>XYZ</description>
        <filter-name>XYZ Filter</filter-name>
        <filter-class>
  com.xyz.security.web.servlet.filters.XYZCookieFilter
        </filter-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>XYZCookies.properties</param-value>
        </init-param>
        <init-param>
            <param-name>mustAuthenticate</param-name>
            <param-value>true</param-value>
        </init-param>
        <init-param>
            <param-name>validate</param-name>
            <param-value>true</param-value>
        </init-param>
    </filter>
    <filter-mapping>
        <filter-name>
   XYZ Filter
        </filter-name>
        <url-pattern>/faces/*</url-pattern>
    </filter-mapping>


My problem is that all JSPs are failing with error :
javax.servlet.ServletException: couldn't load XYZCookieFilter properties from config file "XYZCookies.properties"

Where do i need to place the XYZCookies.properties or how do i need to include it in the deployment so that the filter is able to pick it up?
Any help would be appreciated.

Thank you!! :)
[Message sent by forum member 'maheshrang1']

http://forums.java.net/jive/thread.jspa?messageID=482983