source: DASISH/t5.6/backend/annotator-backend/trunk/annotator-backend/src/main/webapp/WEB-INF/web.xml @ 5385

Last change on this file since 5385 was 5385, checked in by olhsha@mpi.nl, 10 years ago

ref --> href
+ xml:id for instances
refactoring

File size: 4.8 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3
4    Copyright (C) 2013 DASISH
5
6    This program is free software; you can redistribute it and/or
7    modify it under the terms of the GNU General Public License
8    as published by the Free Software Foundation; either version 2
9    of the License, or (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20-->
21<!-- This web.xml file is not required when using Servlet 3.0 container,
22see implementation details http://jersey.java.net/nonav/documentation/latest/jax-rs.html#d4e194 -->
23<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
24    <context-param>
25        <param-name>ShhaaConfigLocation</param-name>
26        <param-value>/WEB-INF/shhaa.xml</param-value>
27    </context-param>
28    <context-param>
29        <param-name>contextConfigLocation</param-name>
30        <param-value>classpath*:spring-config/**/*.xml</param-value>
31    </context-param>
32    <context-param>
33        <param-name>eu.dasish.annotation.backend.schemaLocation</param-name>
34        <param-value>/Users/olhsha/repositories/DASISH/t5.6/schema/trunk/annotator-schema/src/main/resources/DASISH-schema.xsd</param-value>   
35    </context-param>
36    <context-param>
37        <param-name>eu.dasish.annotation.backend.logDatabaseLocation</param-name>
38        <param-value>${catalina.base}/logs/dasishDatabase.log</param-value>
39    </context-param>
40    <context-param>
41        <param-name>eu.dasish.annotation.backend.logServerLocation</param-name>
42        <param-value>${catalina.base}/logs/dasishServer.log</param-value>
43    </context-param>
44    <context-param>
45        <param-name>eu.dasish.annotation.backend.isShibbolethSession</param-name>
46        <param-value>false</param-value>
47    </context-param>
48    <context-param>
49        <param-name>eu.dasish.annotation.backend.logout</param-name>
50        <param-value>/j_spring_security_logout</param-value> 
51    </context-param>
52   
53   
54    <listener>
55        <listener-class>
56            org.springframework.web.context.ContextLoaderListener
57        </listener-class>
58    </listener>
59    <servlet>
60        <servlet-name>annotator-backend</servlet-name>
61        <servlet-class>
62            com.sun.jersey.spi.spring.container.servlet.SpringServlet
63        </servlet-class>
64        <init-param>
65            <param-name>com.sun.jersey.config.property.packages</param-name>
66            <param-value>eu.dasish.annotation.backend</param-value>
67        </init-param>
68        <load-on-startup>1</load-on-startup>
69    </servlet>
70    <servlet>
71        <servlet-name>ServletAdaptor</servlet-name>
72        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
73        <load-on-startup>1</load-on-startup>
74    </servlet>
75    <servlet-mapping>
76        <servlet-name>annotator-backend</servlet-name>
77        <url-pattern>/api/*</url-pattern>
78    </servlet-mapping>
79   
80    <servlet-mapping>
81        <servlet-name>ServletAdaptor</servlet-name>
82        <url-pattern>/webresources/*</url-pattern>
83    </servlet-mapping>
84   
85    <!--   <security-constraint>
86        <display-name>Protected backend localhost</display-name>
87        <web-resource-collection>
88            <web-resource-name> Protected backend rest service</web-resource-name>
89            <description />
90            <url-pattern>/*</url-pattern>
91            <http-method>GET</http-method>
92            <http-method>DELETE</http-method>
93            <http-method>PUT</http-method>
94            <http-method>POST</http-method>
95        </web-resource-collection>
96        <auth-constraint>
97            <role-name>tomcat</role-name>
98        </auth-constraint>
99    </security-constraint>
100    <login-config>
101        <auth-method>BASIC</auth-method>
102    </login-config>
103    <security-role>
104        <description> The role that is required to log in to the Application
105        </description>
106        <role-name>tomcat</role-name>
107    </security-role> -->
108   
109    <!-- Spring security -->
110    <filter>
111        <filter-name>springSecurityFilterChain</filter-name>
112        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
113    </filter>
114    <filter-mapping>
115        <filter-name>springSecurityFilterChain</filter-name>
116        <url-pattern>/*</url-pattern>
117    </filter-mapping>
118   
119  </web-app> 
120       
Note: See TracBrowser for help on using the repository browser.