Project

General

Profile

Download (2.71 KB) Statistics
| Branch: | Tag: | Revision:
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
  <!-- 
8
       NOTE: For a detailed overview on the spring MVC and application context 
9
       configuration and bootstrapping of this web application 
10
       see: http://dev.e-taxonomy.eu/trac/wiki/cdmlib-remote-webappConfigurationAndBootstrapping 
11
  -->
12

    
13
    <description>cdmlib-vaadin web-application instance</description>
14
    <display-name>cdmlib-vaadin</display-name>
15

    
16
    <welcome-file-list>
17
        <welcome-file>index.html</welcome-file>
18
    </welcome-file-list>
19

    
20
	<!--  This config seems to be the same as the servlet 3.0+ web application initializer
21
	 	  config found in eu.etaxonomy.cdm.vaadin.CdmAppInitializer but it doesn't work
22
      -->
23
    <listener>
24
        <listener-class>
25
            org.springframework.web.context.ContextLoaderListener
26
        </listener-class>
27
    </listener>
28

    
29

    
30
    <servlet>
31
        <description>CDM Remote API</description>
32
        <servlet-name>cdm-vaadin</servlet-name>
33
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
34
        <load-on-startup>1</load-on-startup>
35
    </servlet>
36

    
37
    <servlet-mapping>
38
        <servlet-name>cdm-vaadin</servlet-name>
39
        <url-pattern>/</url-pattern>
40
    </servlet-mapping>
41

    
42

    
43
    <filter>
44
      <filter-name>charsetFilter</filter-name>
45
      <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
46
      <init-param>
47
        <param-name>encoding</param-name>
48
        <param-value>UTF-8</param-value>
49
      </init-param>
50
      <init-param>
51
        <param-name>forceEncoding</param-name>
52
        <param-value>true</param-value>
53
      </init-param>
54
    </filter>
55
    <filter-mapping>
56
      <filter-name>charsetFilter</filter-name>
57
      <url-pattern>/*</url-pattern>
58
    </filter-mapping>
59
  
60
    <!-- Remoting Security -->
61

    
62
    <filter>
63
      <filter-name>springSecurityFilterChain</filter-name>
64
      <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
65
    </filter>
66
    <filter-mapping>
67
      <filter-name>springSecurityFilterChain</filter-name>
68
      <url-pattern>/*</url-pattern>
69
    </filter-mapping>
70
  
71
    <!-- 
72
      The production mode is disabled per default.
73
      
74
      There are also productionMode=true settings in the eu.etaxonomy.cdm.vaadin.ui package
75
      which don't seem to have an effect. 
76
    -->
77
    <context-param>
78
      <description>Vaadin production mode</description>
79
      <param-name>productionMode</param-name>
80
      <param-value>true</param-value>
81
    </context-param>
82
</web-app>
(3-3/3)