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-remote web-application instance</description>
|
8
|
<display-name>cdmlib-remote-webapp</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
|
<listener>
|
17
|
<listener-class>
|
18
|
org.springframework.web.context.ContextLoaderListener
|
19
|
</listener-class>
|
20
|
</listener>
|
21
|
|
22
|
|
23
|
<servlet>
|
24
|
<description>CDM Remote API</description>
|
25
|
<servlet-name>cdm-vaadin</servlet-name>
|
26
|
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
|
27
|
<load-on-startup>1</load-on-startup>
|
28
|
</servlet>
|
29
|
|
30
|
<servlet-mapping>
|
31
|
<servlet-name>cdm-vaadin</servlet-name>
|
32
|
<url-pattern>/</url-pattern>
|
33
|
</servlet-mapping>
|
34
|
|
35
|
|
36
|
<filter>
|
37
|
<filter-name>charsetFilter</filter-name>
|
38
|
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
|
39
|
<init-param>
|
40
|
<param-name>encoding</param-name>
|
41
|
<param-value>UTF-8</param-value>
|
42
|
</init-param>
|
43
|
<init-param>
|
44
|
<param-name>forceEncoding</param-name>
|
45
|
<param-value>true</param-value>
|
46
|
</init-param>
|
47
|
</filter>
|
48
|
<filter-mapping>
|
49
|
<filter-name>charsetFilter</filter-name>
|
50
|
<url-pattern>/*</url-pattern>
|
51
|
</filter-mapping>
|
52
|
|
53
|
</web-app>
|