]> git.argeo.org Git - gpl/argeo-slc.git/blob - modules/server/org.argeo.slc.webapp.war/WEB-INF/web.xml
Fix issues with security dependencies
[gpl/argeo-slc.git] / modules / server / org.argeo.slc.webapp.war / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
4 version="2.5">
5
6 <display-name>SLC Web Application</display-name>
7
8 <!-- SERVICE servlet -->
9 <servlet>
10 <servlet-name>slc-service</servlet-name>
11 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
12 <init-param>
13 <param-name>contextClass</param-name>
14 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
15 </init-param>
16 <load-on-startup>1</load-on-startup>
17 </servlet>
18
19 <servlet-mapping>
20 <servlet-name>slc-service</servlet-name>
21 <url-pattern>*.service</url-pattern>
22 </servlet-mapping>
23
24 <!-- XSLT servlet -->
25 <servlet>
26 <servlet-name>xslt</servlet-name>
27 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
28 <init-param>
29 <param-name>contextClass</param-name>
30 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
31 </init-param>
32 </servlet>
33
34 <servlet-mapping>
35 <servlet-name>xslt</servlet-name>
36 <url-pattern>*.xslt</url-pattern>
37 </servlet-mapping>
38
39 <!-- DOC servlet -->
40 <servlet>
41 <servlet-name>doc</servlet-name>
42 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
43 <init-param>
44 <param-name>contextClass</param-name>
45 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
46 </init-param>
47 </servlet>
48
49 <servlet-mapping>
50 <servlet-name>doc</servlet-name>
51 <url-pattern>*.xls</url-pattern>
52 </servlet-mapping>
53 <servlet-mapping>
54 <servlet-name>doc</servlet-name>
55 <url-pattern>*.pdf</url-pattern>
56 </servlet-mapping>
57
58 <!-- PROVISIONING servlet -->
59 <servlet>
60 <servlet-name>provisioning</servlet-name>
61 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
62 <init-param>
63 <param-name>contextClass</param-name>
64 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
65 </init-param>
66 <load-on-startup>1</load-on-startup>
67 </servlet>
68 <servlet-mapping>
69 <servlet-name>provisioning</servlet-name>
70 <url-pattern>/dist/*</url-pattern>
71 </servlet-mapping>
72
73 <!-- General -->
74 <context-param>
75 <param-name>contextConfigLocation</param-name>
76 <param-value>/WEB-INF/applicationContext.xml</param-value>
77 </context-param>
78
79 <listener>
80 <display-name>Spring Context</display-name>
81 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
82 </listener>
83 <context-param>
84 <param-name>contextClass</param-name>
85 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
86 </context-param>
87
88 <!-- Security -->
89 <filter>
90 <filter-name>springSecurityFilterChain</filter-name>
91 <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
92 </filter>
93
94 <filter-mapping>
95 <filter-name>springSecurityFilterChain</filter-name>
96 <url-pattern>/*</url-pattern>
97 </filter-mapping>
98
99 <!--
100 Log4j configContext loader config <listener>
101 <display-name>Log4j</display-name>
102 <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
103 </listener> <context-param>
104 <param-name>log4jConfigLocation</param-name>
105 <param-value>/WEB-INF/classes/log4j.properties</param-value>
106 </context-param> <context-param>
107 <param-name>log4jRefreshInterval</param-name>
108 <param-value>5000</param-value> </context-param>
109 -->
110 </web-app>