Project

General

Profile

Download (3.42 KB) Statistics
| Branch: | Tag: | Revision:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
3
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
5
         http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
6
    <description>EDIT CDM Community Server</description>
7
    <display-name>CDM Community Server</display-name>
8

    
9
	<!-- ==================================================================
10
   		  load /WEB-INF/applicationContext.xml
11
   		  
12
   		  org.springframework.web.context.ContextLoaderListener defaults 
13
   		  to /WEB-INF/applicationContext.xml if contextConfigLocation 
14
   		  not set
15
    	 ================================================================== -->
16
    <!-- 
17
     -->
18
    <listener>
19
        <listener-class>
20
            org.springframework.web.context.ContextLoaderListener
21
        </listener-class>
22
    </listener>
23
	<context-param>
24
		  <param-name>contextConfigLocation</param-name>
25
		  <param-value>/WEB-INF/applicationContext.xml</param-value>
26
	</context-param>
27
	
28
	<!-- ==================================================================
29
   		  load other log4j.properties than that found in WEB-INF/classes/
30
    	 ================================================================== -->
31
    <!-- 
32
   	 <listener>
33
    	<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
34
	</listener>
35
	<context-param>
36
	    <param-name>log4jConfigLocation</param-name>
37
	    <param-value>/WEB-INF/classes/eu/etaxonomy/cdm/remote/log4j.properties</param-value>
38
  	</context-param>
39
     -->
40

    
41
    <servlet>
42
        <description>CDM Remote API</description>
43
        <servlet-name>cdmlib-remote</servlet-name> 
44
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
45
        <!-- 
46
        <init-param>
47
            <param-name>logVerbosityLevel</param-name>
48
            <param-value>DEBUG</param-value>
49
        </init-param> 
50
        -->
51
        <load-on-startup>1</load-on-startup>
52
    </servlet>
53
    <servlet-mapping>
54
        <servlet-name>cdmlib-remote</servlet-name>
55
        <url-pattern>/</url-pattern>
56
    </servlet-mapping>
57
    
58
    <servlet-mapping>
59
        <servlet-name>default</servlet-name>
60
        <url-pattern>*.xsl</url-pattern>
61
    </servlet-mapping>
62
    <servlet-mapping>
63
        <servlet-name>default</servlet-name>
64
        <url-pattern>*.ico</url-pattern>
65
    </servlet-mapping>
66

    
67
    <!-- 
68
        The welcome-file-list will be ignored since the cdmlib-remote servlet is mapped to the root path 
69
    <welcome-file-list>
70
    </welcome-file-list>
71
     -->
72

    
73
	<filter>
74
		<filter-name>charsetFilter</filter-name>
75
		<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
76
		<init-param>
77
			<param-name>encoding</param-name>
78
			<param-value>UTF-8</param-value>
79
		</init-param>
80
		<init-param>
81
			<param-name>forceEncoding</param-name>
82
			<param-value>true</param-value>
83
		</init-param>
84
	</filter>
85
	<filter-mapping>
86
		<filter-name>charsetFilter</filter-name>
87
		<url-pattern>/*</url-pattern>
88
	</filter-mapping>
89
	
90
	<!-- 
91
		Security 
92
	-->
93
<!--	<filter>-->
94
<!--        <filter-name>springSecurityFilterChain</filter-name>-->
95
<!--        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>-->
96
<!--    </filter>-->
97
<!--    <filter-mapping>-->
98
<!--      <filter-name>springSecurityFilterChain</filter-name>-->
99
<!--      <url-pattern>/*</url-pattern>-->
100
<!--    </filter-mapping>-->
101
   
102
    
103
</web-app>
(6-6/7)