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

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

fixing access bug (READ action was != "read" access)

File size: 5.3 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   
29   
30    <context-param>
31        <param-name>contextConfigLocation</param-name>
32        <param-value>classpath*:spring-config/**/*.xml</param-value>
33    </context-param>
34    <context-param>
35        <param-name>eu.dasish.annotation.backend.schemaLocation</param-name>
36        <param-value>http://www.dasish.eu/ns/addit https://svn.clarin.eu/DASISH/t5.6/schema/trunk/annotator-schema/src/main/resources/DASISH-schema.xsd</param-value>
37        <!-- <param-value>http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/schema/trunk/annotator-schema/src/main/target/DASISH-schema.xsd</param-value> -->
38    </context-param>
39    <context-param>
40        <param-name>eu.dasish.annotation.backend.logDatabaseLocation</param-name>
41        <param-value>${catalina.base}/logs/dasishDatabase.log</param-value>
42    </context-param>
43    <context-param>
44        <param-name>eu.dasish.annotation.backend.logServerLocation</param-name>
45        <param-value>${catalina.base}/logs/dasishServer.log</param-value>
46    </context-param>
47    <context-param>
48        <param-name>eu.dasish.annotation.backend.logout</param-name>
49<!--        <param-value>/ds/webannotator?shhaaDo=lO</param-value>-->
50<!--       <param-value>/ds/webannotator/j_spring_security_logout</param-value>-->
51         <param-value>/annotator-backend/j_spring_security_logout</param-value>
52    </context-param>
53   
54   
55    <listener>
56        <listener-class>
57            org.springframework.web.context.ContextLoaderListener
58        </listener-class>
59    </listener>
60    <servlet>
61        <servlet-name>annotator-backend</servlet-name>
62        <servlet-class>
63            com.sun.jersey.spi.spring.container.servlet.SpringServlet
64        </servlet-class>
65        <init-param>
66            <param-name>com.sun.jersey.config.property.packages</param-name>
67            <param-value>eu.dasish.annotation.backend</param-value>
68        </init-param>
69        <load-on-startup>1</load-on-startup>
70    </servlet>
71    <servlet>
72        <servlet-name>ServletAdaptor</servlet-name>
73        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
74        <load-on-startup>1</load-on-startup>
75    </servlet>
76    <servlet-mapping>
77        <servlet-name>annotator-backend</servlet-name>
78        <url-pattern>/api/*</url-pattern>
79    </servlet-mapping>
80   
81    <servlet-mapping>
82        <servlet-name>ServletAdaptor</servlet-name>
83        <url-pattern>/webresources/*</url-pattern>
84    </servlet-mapping>
85   
86    <!--   <security-constraint>
87        <display-name>Protected backend localhost</display-name>
88        <web-resource-collection>
89            <web-resource-name> Protected backend rest service</web-resource-name>
90            <description />
91            <url-pattern>/*</url-pattern>
92            <http-method>GET</http-method>
93            <http-method>DELETE</http-method>
94            <http-method>PUT</http-method>
95            <http-method>POST</http-method>
96        </web-resource-collection>
97        <auth-constraint>
98            <role-name>tomcat</role-name>
99        </auth-constraint>
100    </security-constraint>
101    <login-config>
102        <auth-method>BASIC</auth-method>
103    </login-config>
104    <security-role>
105        <description> The role that is required to log in to the Application
106        </description>
107        <role-name>tomcat</role-name>
108    </security-role> -->
109   
110 <!-- Spring security -->
111    <filter>
112        <filter-name>springSecurityFilterChain</filter-name>
113        <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
114    </filter>
115    <filter-mapping>
116        <filter-name>springSecurityFilterChain</filter-name>
117        <url-pattern>/*</url-pattern>
118    </filter-mapping>
119       
120    <!--  Shibboleth filter -->
121<!--    <filter>
122        <filter-name>AAIFilter</filter-name>
123        <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class>
124    </filter>
125    <filter-mapping>
126        <filter-name>AAIFilter</filter-name>
127        <url-pattern>/*</url-pattern>
128    </filter-mapping> -->
129   
130   
131</web-app>
Note: See TracBrowser for help on using the repository browser.