1 |
50505
|
stefanos.g
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
18399
|
antonis.le
|
<web-app>
|
3 |
50505
|
stefanos.g
|
<display-name>DNet-2.0 container web app</display-name>
|
4 |
23837
|
antonis.le
|
<context-param>
|
5 |
50505
|
stefanos.g
|
<param-name>contextConfigLocation</param-name>
|
6 |
|
|
<param-value>/WEB-INF/applicationContext.xml</param-value>
|
7 |
|
|
</context-param>
|
8 |
|
|
<context-param>
|
9 |
23837
|
antonis.le
|
<param-name>log4jConfigLocation</param-name>
|
10 |
|
|
<param-value>/WEB-INF/log4j.properties</param-value>
|
11 |
|
|
</context-param>
|
12 |
|
|
<listener>
|
13 |
|
|
<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
|
14 |
|
|
</listener>
|
15 |
50505
|
stefanos.g
|
<listener>
|
16 |
|
|
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
|
17 |
|
|
</listener>
|
18 |
|
|
<listener>
|
19 |
|
|
<listener-class>eu.dnetlib.data.emailSender.EmailScheduler</listener-class>
|
20 |
|
|
</listener>
|
21 |
42620
|
katerina.i
|
|
22 |
47447
|
konstantin
|
|
23 |
50505
|
stefanos.g
|
<servlet>
|
24 |
|
|
<servlet-name>jersey-serlvet</servlet-name>
|
25 |
|
|
<!--<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>-->
|
26 |
|
|
<servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
|
27 |
|
|
<init-param>
|
28 |
|
|
<!--<param-name>com.sun.jersey.config.property.packages</param-name>-->
|
29 |
|
|
<param-name>com.sun.jersey.config.property.packages</param-name>
|
30 |
|
|
<param-value>eu.dnetlib.openaire.rest</param-value>
|
31 |
|
|
</init-param>
|
32 |
|
|
<load-on-startup>1</load-on-startup>
|
33 |
|
|
</servlet>
|
34 |
47447
|
konstantin
|
|
35 |
50505
|
stefanos.g
|
<servlet-mapping>
|
36 |
|
|
<servlet-name>jersey-serlvet</servlet-name>
|
37 |
|
|
<url-pattern>/rest/*</url-pattern>
|
38 |
|
|
</servlet-mapping>
|
39 |
42620
|
katerina.i
|
|
40 |
50505
|
stefanos.g
|
<filter>
|
41 |
|
|
<filter-name>CorsFilter</filter-name>
|
42 |
|
|
<filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
|
43 |
|
|
<init-param>
|
44 |
|
|
<param-name>cors.allowed.origins</param-name>
|
45 |
|
|
<param-value>*</param-value>
|
46 |
|
|
</init-param>
|
47 |
|
|
<init-param>
|
48 |
|
|
<param-name>cors.allowed.methods</param-name>
|
49 |
|
|
<param-value>GET,POST,HEAD,OPTIONS,DELETE</param-value>
|
50 |
|
|
</init-param>
|
51 |
|
|
<init-param>
|
52 |
|
|
<param-name>cors.exposed.headers</param-name>
|
53 |
|
|
<param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials,Access-Control-Allow-Methods
|
54 |
|
|
</param-value>
|
55 |
|
|
</init-param>
|
56 |
|
|
<init-param>
|
57 |
|
|
<param-name>cors.support.credentials</param-name>
|
58 |
|
|
<param-value>true</param-value>
|
59 |
|
|
</init-param>
|
60 |
|
|
<init-param>
|
61 |
|
|
<param-name>cors.allowed.headers</param-name>
|
62 |
|
|
<param-value>
|
63 |
|
|
Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,X-XSRF-TOKEN,withcredentials
|
64 |
|
|
</param-value>
|
65 |
|
|
</init-param>
|
66 |
|
|
</filter>
|
67 |
|
|
<filter-mapping>
|
68 |
|
|
<filter-name>CorsFilter</filter-name>
|
69 |
|
|
<url-pattern>/*</url-pattern>
|
70 |
|
|
</filter-mapping>
|
71 |
42620
|
katerina.i
|
|
72 |
50505
|
stefanos.g
|
<filter>
|
73 |
|
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
74 |
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
75 |
|
|
</filter>
|
76 |
42620
|
katerina.i
|
|
77 |
50505
|
stefanos.g
|
<filter-mapping>
|
78 |
|
|
<filter-name>springSessionRepositoryFilter</filter-name>
|
79 |
|
|
<url-pattern>/*</url-pattern>
|
80 |
|
|
<dispatcher>REQUEST</dispatcher>
|
81 |
|
|
<dispatcher>ERROR</dispatcher>
|
82 |
|
|
</filter-mapping>
|
83 |
50400
|
katerina.i
|
|
84 |
50505
|
stefanos.g
|
<filter>
|
85 |
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
86 |
|
|
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
|
87 |
|
|
<init-param>
|
88 |
|
|
<param-name>contextAttribute</param-name>
|
89 |
|
|
<param-value>org.springframework.web.servlet.FrameworkServlet.CONTEXT.springrest</param-value>
|
90 |
|
|
</init-param>
|
91 |
|
|
</filter>
|
92 |
50400
|
katerina.i
|
|
93 |
50505
|
stefanos.g
|
<filter-mapping>
|
94 |
|
|
<filter-name>springSecurityFilterChain</filter-name>
|
95 |
|
|
<url-pattern>/*</url-pattern>
|
96 |
|
|
</filter-mapping>
|
97 |
50400
|
katerina.i
|
|
98 |
|
|
|
99 |
18405
|
antonis.le
|
</web-app>
|