Project

General

Profile

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

    
61
    <filter>
62
      <filter-name>springSecurityFilterChain</filter-name>
63
      <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
64
    </filter>
65
    <filter-mapping>
66
      <filter-name>springSecurityFilterChain</filter-name>
67
      <url-pattern>/*</url-pattern>
68
    </filter-mapping>
69
 
70
    
71
</web-app>
(3-3/3)