|
|
|
|
@ -12,26 +12,30 @@
@@ -12,26 +12,30 @@
|
|
|
|
|
|
|
|
|
|
<display-name>Contacts Sample Application</display-name> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
- Location of the XML file that defines the root application context |
|
|
|
|
- Applied by ContextLoaderListener. |
|
|
|
|
--> |
|
|
|
|
<context-param> |
|
|
|
|
<param-name>contextConfigLocation</param-name> |
|
|
|
|
<param-value> |
|
|
|
|
/WEB-INF/applicationContext-security.xml |
|
|
|
|
classpath:applicationContext-common-business.xml |
|
|
|
|
classpath:applicationContext-common-authorization.xml |
|
|
|
|
</param-value> |
|
|
|
|
</context-param> |
|
|
|
|
<!-- |
|
|
|
|
- Location of the XML file that defines the root application context |
|
|
|
|
- Applied by ContextLoaderListener. |
|
|
|
|
--> |
|
|
|
|
<context-param> |
|
|
|
|
<param-name>contextConfigLocation</param-name> |
|
|
|
|
<param-value> |
|
|
|
|
/WEB-INF/applicationContext-security.xml |
|
|
|
|
classpath:applicationContext-common-business.xml |
|
|
|
|
classpath:applicationContext-common-authorization.xml |
|
|
|
|
</param-value> |
|
|
|
|
</context-param> |
|
|
|
|
|
|
|
|
|
<!-- Nothing below here needs to be modified --> |
|
|
|
|
|
|
|
|
|
<context-param> |
|
|
|
|
<param-name>log4jConfigLocation</param-name> |
|
|
|
|
<param-value>/WEB-INF/classes/log4j.properties</param-value> |
|
|
|
|
</context-param> |
|
|
|
|
<context-param> |
|
|
|
|
<param-name>log4jConfigLocation</param-name> |
|
|
|
|
<param-value>/WEB-INF/classes/log4j.properties</param-value> |
|
|
|
|
</context-param> |
|
|
|
|
|
|
|
|
|
<context-param> |
|
|
|
|
<param-name>webAppRootKey</param-name> |
|
|
|
|
<param-value>contacts.root</param-value> |
|
|
|
|
</context-param> |
|
|
|
|
|
|
|
|
|
<filter> |
|
|
|
|
<filter-name>springSecurityFilterChain</filter-name> |
|
|
|
|
@ -43,18 +47,18 @@
@@ -43,18 +47,18 @@
|
|
|
|
|
<url-pattern>/*</url-pattern> |
|
|
|
|
</filter-mapping> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
- Loads the root application context of this web app at startup. |
|
|
|
|
- The application context is then available via |
|
|
|
|
- WebApplicationContextUtils.getWebApplicationContext(servletContext). |
|
|
|
|
<!-- |
|
|
|
|
- Loads the root application context of this web app at startup. |
|
|
|
|
- The application context is then available via |
|
|
|
|
- WebApplicationContextUtils.getWebApplicationContext(servletContext). |
|
|
|
|
--> |
|
|
|
|
<listener> |
|
|
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
|
|
|
|
</listener> |
|
|
|
|
<listener> |
|
|
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
|
|
|
|
</listener> |
|
|
|
|
|
|
|
|
|
<listener> |
|
|
|
|
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> |
|
|
|
|
</listener> |
|
|
|
|
<listener> |
|
|
|
|
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class> |
|
|
|
|
</listener> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
The HttpSessionEventPublisher will publish |
|
|
|
|
@ -66,40 +70,40 @@
@@ -66,40 +70,40 @@
|
|
|
|
|
</listener> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
- Provides core MVC application controller. See contacts-servlet.xml. |
|
|
|
|
- Provides core MVC application controller. See contacts-servlet.xml. |
|
|
|
|
--> |
|
|
|
|
<servlet> |
|
|
|
|
<servlet-name>contacts</servlet-name> |
|
|
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
|
|
|
|
<load-on-startup>1</load-on-startup> |
|
|
|
|
</servlet> |
|
|
|
|
<servlet> |
|
|
|
|
<servlet-name>contacts</servlet-name> |
|
|
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
|
|
|
|
<load-on-startup>1</load-on-startup> |
|
|
|
|
</servlet> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
- Provides web services endpoint. See remoting-servlet.xml. |
|
|
|
|
--> |
|
|
|
|
<servlet> |
|
|
|
|
<servlet-name>remoting</servlet-name> |
|
|
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
|
|
|
|
<load-on-startup>2</load-on-startup> |
|
|
|
|
</servlet> |
|
|
|
|
|
|
|
|
|
<servlet-mapping> |
|
|
|
|
<servlet-name>contacts</servlet-name> |
|
|
|
|
<url-pattern>*.htm</url-pattern> |
|
|
|
|
</servlet-mapping> |
|
|
|
|
|
|
|
|
|
<servlet-mapping> |
|
|
|
|
<servlet-name>remoting</servlet-name> |
|
|
|
|
<url-pattern>/remoting/*</url-pattern> |
|
|
|
|
</servlet-mapping> |
|
|
|
|
|
|
|
|
|
<welcome-file-list> |
|
|
|
|
<welcome-file>index.jsp</welcome-file> |
|
|
|
|
</welcome-file-list> |
|
|
|
|
|
|
|
|
|
<error-page> |
|
|
|
|
<error-code>403</error-code> |
|
|
|
|
<location>/error.html</location> |
|
|
|
|
</error-page> |
|
|
|
|
<servlet> |
|
|
|
|
<servlet-name>remoting</servlet-name> |
|
|
|
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> |
|
|
|
|
<load-on-startup>2</load-on-startup> |
|
|
|
|
</servlet> |
|
|
|
|
|
|
|
|
|
<servlet-mapping> |
|
|
|
|
<servlet-name>contacts</servlet-name> |
|
|
|
|
<url-pattern>*.htm</url-pattern> |
|
|
|
|
</servlet-mapping> |
|
|
|
|
|
|
|
|
|
<servlet-mapping> |
|
|
|
|
<servlet-name>remoting</servlet-name> |
|
|
|
|
<url-pattern>/remoting/*</url-pattern> |
|
|
|
|
</servlet-mapping> |
|
|
|
|
|
|
|
|
|
<welcome-file-list> |
|
|
|
|
<welcome-file>index.jsp</welcome-file> |
|
|
|
|
</welcome-file-list> |
|
|
|
|
|
|
|
|
|
<error-page> |
|
|
|
|
<error-code>403</error-code> |
|
|
|
|
<location>/error.html</location> |
|
|
|
|
</error-page> |
|
|
|
|
|
|
|
|
|
</web-app> |
|
|
|
|
|