]> git.argeo.org Git - lgpl/argeo-commons.git/blob - server/modules/org.argeo.server.osgi.webapp/WEB-INF/web.xml
fde1ebba46de1d2a93df84ba7ab5d29ea519a6b1
[lgpl/argeo-commons.git] / server / modules / org.argeo.server.osgi.webapp / 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>Argeo OSGi Webapp</display-name>
7
8 <!-- General -->
9 <context-param>
10 <param-name>contextConfigLocation</param-name>
11 <param-value>/WEB-INF/applicationContext.xml</param-value>
12 </context-param>
13
14 <listener>
15 <display-name>Spring Context</display-name>
16 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
17 </listener>
18 <context-param>
19 <param-name>contextClass</param-name>
20 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
21 </context-param>
22
23 <!-- OSGi Http Service -->
24 <!-- <servlet>-->
25 <!-- <servlet-name>service</servlet-name>-->
26 <!-- <servlet-class>org.eclipse.equinox.http.servlet.HttpServiceServlet</servlet-class>-->
27 <!-- <load-on-startup>1</load-on-startup>-->
28 <!-- </servlet>-->
29 <servlet>
30 <servlet-name>service</servlet-name>
31 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
32 <init-param>
33 <param-name>contextClass</param-name>
34 <param-value>org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext</param-value>
35 </init-param>
36 <load-on-startup>1</load-on-startup>
37 </servlet>
38
39 <servlet-mapping>
40 <servlet-name>service</servlet-name>
41 <url-pattern>/*</url-pattern>
42 </servlet-mapping>
43
44 <!-- Security -->
45 <filter>
46 <filter-name>springSecurityFilterChain</filter-name>
47 <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
48 </filter>
49
50 <filter-mapping>
51 <filter-name>springSecurityFilterChain</filter-name>
52 <url-pattern>/*</url-pattern>
53 </filter-mapping>
54
55 </web-app>