2007-09-17 08:26:46 -04:00
|
|
|
<?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>Acegi NTLM</display-name>
|
|
|
|
|
|
|
|
<!-- 1. Setup two parameters: -->
|
|
|
|
<!-- a) Acegi's configuration file -->
|
|
|
|
<!-- b) Loggin configuration file -->
|
|
|
|
<context-param>
|
|
|
|
<param-name>contextConfigLocation</param-name>
|
|
|
|
<param-value>/WEB-INF/applicationContext.xml</param-value>
|
|
|
|
</context-param>
|
|
|
|
|
|
|
|
<context-param>
|
|
|
|
<param-name>log4jConfigLocation</param-name>
|
|
|
|
<param-value>/WEB-INF/log4j.properties</param-value>
|
|
|
|
</context-param>
|
|
|
|
|
|
|
|
<!-- 2. Setup the Acegi Filter Chain Proxy -->
|
|
|
|
<filter>
|
|
|
|
<filter-name>Acegi Filter Chain Proxy</filter-name>
|
2007-09-22 17:37:44 -04:00
|
|
|
<filter-class>org.springframework.security.FilterToBeanProxy</filter-class>
|
2007-09-17 08:26:46 -04:00
|
|
|
<init-param>
|
|
|
|
<param-name>targetClass</param-name>
|
2007-09-22 17:37:44 -04:00
|
|
|
<param-value>org.springframework.security.util.FilterChainProxy</param-value>
|
2007-09-17 08:26:46 -04:00
|
|
|
</init-param>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<filter-mapping>
|
|
|
|
<filter-name>Acegi Filter Chain Proxy</filter-name>
|
|
|
|
<url-pattern>/**</url-pattern>
|
|
|
|
</filter-mapping>
|
|
|
|
|
|
|
|
<!-- 3. Setup three listeners -->
|
|
|
|
<!-- a) Setup a listener to connect spring with the web context -->
|
|
|
|
<listener>
|
|
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
|
|
|
</listener>
|
|
|
|
|
2007-09-22 17:37:44 -04:00
|
|
|
<!-- b) Setup a listener to connect spring with log4J -->
|
2007-09-17 08:26:46 -04:00
|
|
|
<listener>
|
|
|
|
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
|
|
|
|
</listener>
|
|
|
|
|
|
|
|
<!-- c) Setup ACEGI to subscribe to http session events in the web context -->
|
|
|
|
<listener>
|
2007-09-22 17:37:44 -04:00
|
|
|
<listener-class>org.springframework.acegisecurityrk.acegisecurity.ui.session.HttpSessionEventPublisher</listener-class>
|
2007-09-17 08:26:46 -04:00
|
|
|
</listener>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
</web-app>
|