Results 1 to 3 of 3

Thread: Existing filters and acegi filters

  1. #1
    Join Date
    Nov 2005
    Posts
    3

    Question Existing filters and acegi filters

    Hi All

    I'm trying to integrate acegi into my spring based web application. However, after integrating acegi into my app, my own filter seems to be not working. The acegi authentication works fine, it does the checking of username and password. After a successful log in, when it is directed to the page that I am accessing. I am getting a blank page... Any help is appreciated Many thanks!!
    below is my web.xml:

    <filter>
    <filter-name>Acegi Filter Chain Proxy</filter-name>
    <filter-class>net.sf.acegisecurity.util.FilterToBeanProxy</filter-class>
    <init-param>
    <param-name>targetClass</param-name>
    <param-value>net.sf.acegisecurity.util.FilterChainProxy</param-value>
    </init-param>
    </filter>

    <filter-mapping>
    <filter-name>Acegi Filter Chain Proxy</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>

    <filter>
    <filter-name>sitemesh</filter-name>
    <filter-class>com.opensymphony.module.sitemesh.filter.Page Filter</filter-class>
    </filter>

    <filter-mapping>
    <filter-name>sitemesh</filter-name>
    <url-pattern>*/*.htm</url-pattern>
    </filter-mapping>

    <filter>
    <filter-name>sessioninview</filter-name>
    <filter-class>org.springframework.orm.hibernate3.support.O penSessionInViewFilter</filter-class>
    <init-param>
    <param-name>singleSession</param-name>
    <param-value>true</param-value>
    </init-param>
    </filter>

    <filter-mapping>
    <filter-name>sessioninview</filter-name>
    <url-pattern>*/*.htm</url-pattern>
    </filter-mapping>

    <filter>
    <filter-name>My Own filter mapping</filter-name>
    <filter-class>myapp.filter.MySessionFilter</filter-class>
    </filter>

    <filter-mapping>
    <filter-name>My Own filter mapping</filter-name>
    <url-pattern>*/*.htm</url-pattern>
    </filter-mapping>

  2. #2
    Join Date
    Dec 2004
    Location
    Minneapolis, MN
    Posts
    20

    Default

    Any info in your logs we can use to debug? Blank page doesn't tell us much.

    -Todd

  3. #3
    Join Date
    Nov 2005
    Posts
    3

    Default

    Hi Todd!! Was able to solve it just now it seems like the ordering of the filter mapping matters many thanks for the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •