1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
2 | <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
3 | xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" |
---|
4 | xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" |
---|
5 | version="3.0"> |
---|
6 | |
---|
7 | <display-name>vlo-web-app</display-name> |
---|
8 | |
---|
9 | <!-- |
---|
10 | There are three means to configure Wickets configuration mode and they |
---|
11 | are tested in the order given. |
---|
12 | |
---|
13 | 1) A system property: -Dwicket.configuration |
---|
14 | 2) servlet specific <init-param> |
---|
15 | 3) context specific <context-param> |
---|
16 | |
---|
17 | The value might be either "development" (reloading when templates change) or |
---|
18 | "deployment". If no configuration is found, "development" is the default. --> |
---|
19 | |
---|
20 | <filter> |
---|
21 | <filter-name>wicket.vlo-web-app</filter-name> |
---|
22 | <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> |
---|
23 | <init-param> |
---|
24 | <param-name>applicationFactoryClassName</param-name> |
---|
25 | <param-value>org.apache.wicket.spring.SpringWebApplicationFactory</param-value> |
---|
26 | </init-param> |
---|
27 | </filter> |
---|
28 | |
---|
29 | <filter-mapping> |
---|
30 | <filter-name>wicket.vlo-web-app</filter-name> |
---|
31 | <url-pattern>/*</url-pattern> |
---|
32 | </filter-mapping> |
---|
33 | |
---|
34 | <!-- Wake up Spring when the web app starts --> |
---|
35 | <listener> |
---|
36 | <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> |
---|
37 | </listener> |
---|
38 | |
---|
39 | <!-- |
---|
40 | Context parameter below specifies the location of the spring application |
---|
41 | context. Used to bootstrap annotation based configuration, see: |
---|
42 | eu.clarin.vmdi.vlo.config.VloSpringConfig |
---|
43 | --> |
---|
44 | <context-param> |
---|
45 | <param-name>contextConfigLocation</param-name> |
---|
46 | <param-value>WEB-INF/applicationContext.xml</param-value> |
---|
47 | </context-param> |
---|
48 | |
---|
49 | <!-- |
---|
50 | Enable JavaMelody for application monitoring |
---|
51 | More info at https://code.google.com/p/javamelody/ |
---|
52 | --> |
---|
53 | |
---|
54 | <filter> |
---|
55 | <filter-name>monitoring</filter-name> |
---|
56 | <filter-class>net.bull.javamelody.MonitoringFilter</filter-class> |
---|
57 | </filter> |
---|
58 | <filter-mapping> |
---|
59 | <filter-name>monitoring</filter-name> |
---|
60 | <url-pattern>/*</url-pattern> |
---|
61 | </filter-mapping> |
---|
62 | <listener> |
---|
63 | <listener-class>net.bull.javamelody.SessionListener</listener-class> |
---|
64 | </listener> |
---|
65 | |
---|
66 | <session-config> |
---|
67 | <tracking-mode>COOKIE</tracking-mode> |
---|
68 | </session-config> |
---|
69 | </web-app> |
---|