1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
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
|
<description>cdmlib-vaadin web-application instance</description>
|
8
|
<display-name>cdmlib-vaadin</display-name>
|
9
|
|
10
|
<welcome-file-list>
|
11
|
<welcome-file>index.html</welcome-file>
|
12
|
</welcome-file-list>
|
13
|
|
14
|
<!-- This config seems to be the same as the servlet 3.0+ web application initializer
|
15
|
config found in eu.etaxonomy.cdm.vaadin.CdmAppInitializer but it doesn't work
|
16
|
-->
|
17
|
<listener>
|
18
|
<listener-class>
|
19
|
org.springframework.web.context.ContextLoaderListener
|
20
|
</listener-class>
|
21
|
</listener>
|
22
|
|
23
|
|
24
|
<servlet>
|
25
|
<description>CDM Remote API</description>
|
26
|
<servlet-name>cdm-vaadin</servlet-name>
|
27
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
28
|
<load-on-startup>1</load-on-startup>
|
29
|
</servlet>
|
30
|
|
31
|
<servlet-mapping>
|
32
|
<servlet-name>cdm-vaadin</servlet-name>
|
33
|
<url-pattern>/</url-pattern>
|
34
|
</servlet-mapping>
|
35
|
|
36
|
|
37
|
<filter>
|
38
|
<filter-name>charsetFilter</filter-name>
|
39
|
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
40
|
<init-param>
|
41
|
<param-name>encoding</param-name>
|
42
|
<param-value>UTF-8</param-value>
|
43
|
</init-param>
|
44
|
<init-param>
|
45
|
<param-name>forceEncoding</param-name>
|
46
|
<param-value>true</param-value>
|
47
|
</init-param>
|
48
|
</filter>
|
49
|
<filter-mapping>
|
50
|
<filter-name>charsetFilter</filter-name>
|
51
|
<url-pattern>/*</url-pattern>
|
52
|
</filter-mapping>
|
53
|
|
54
|
<!--
|
55
|
The production mode is disabled per default.
|
56
|
|
57
|
There are also productionMode=true settings in the eu.etaxonomy.cdm.vaadin.ui package
|
58
|
which don't seem to have an effect.
|
59
|
-->
|
60
|
<context-param>
|
61
|
<description>Vaadin production mode</description>
|
62
|
<param-name>productionMode</param-name>
|
63
|
<param-value>true</param-value>
|
64
|
</context-param>
|
65
|
</web-app>
|