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">
|
2007-10-03 10:02:39 -04:00
|
|
|
<display-name>Spring Security NTLM</display-name>
|
2007-09-17 08:26:46 -04:00
|
|
|
|
|
|
|
<!-- 1. Setup two parameters: -->
|
2007-10-03 10:02:39 -04:00
|
|
|
<!-- a) Spring Security's configuration file -->
|
|
|
|
<!-- b) Logging configuration file -->
|
2007-09-17 08:26:46 -04:00
|
|
|
<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>
|
|
|
|
|
2007-10-03 10:02:39 -04:00
|
|
|
<!-- 2. Setup the Spring Security Filter Chain Proxy -->
|
2008-03-13 14:52:31 -04:00
|
|
|
<filter>
|
|
|
|
<filter-name>filterChainProxy</filter-name>
|
|
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
|
|
|
</filter>
|
|
|
|
|
|
|
|
<filter-mapping>
|
|
|
|
<filter-name>filterChainProxy</filter-name>
|
|
|
|
<url-pattern>/*</url-pattern>
|
|
|
|
</filter-mapping>
|
|
|
|
|
2007-09-17 08:26:46 -04:00
|
|
|
<!-- 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>
|
|
|
|
|
2007-10-03 10:02:39 -04:00
|
|
|
<!-- c) Setup Spring Security to subscribe to http session events in the web context -->
|
2007-09-17 08:26:46 -04:00
|
|
|
<listener>
|
2007-09-26 07:33:54 -04:00
|
|
|
<listener-class>org.springframework.security.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>
|