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

Last change on this file since 4245 was 4245, checked in by olhsha, 10 years ago

shibbolized

File size: 3.1 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>contextConfigLocation</param-name>
26        <param-value>classpath*:spring-config/**/*.xml</param-value>
27    </context-param>
28    <context-param>
29        <param-name>eu.dasish.annotation.backend.schemaLocation</param-name>
30        <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>
31    </context-param>
32   
33    <listener>
34        <listener-class>
35            org.springframework.web.context.ContextLoaderListener
36        </listener-class>
37    </listener>
38    <servlet>
39        <servlet-name>annotator-backend</servlet-name>
40        <servlet-class>
41            com.sun.jersey.spi.spring.container.servlet.SpringServlet
42        </servlet-class>
43        <init-param>
44            <param-name>
45                com.sun.jersey.config.property.packages
46            </param-name>
47            <param-value>eu.dasish.annotation.backend</param-value>
48        </init-param>
49        <load-on-startup>1</load-on-startup>
50    </servlet>
51    <servlet>
52        <servlet-name>ServletAdaptor</servlet-name>
53        <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
54        <load-on-startup>1</load-on-startup>
55    </servlet>
56    <servlet-mapping>
57        <servlet-name>annotator-backend</servlet-name>
58        <url-pattern>/api/*</url-pattern>
59    </servlet-mapping>
60    <!--    <servlet-mapping>
61        <servlet-name>ServletAdaptor</servlet-name>
62        <url-pattern>/webresources/*</url-pattern>
63    </servlet-mapping>-->
64    <servlet-mapping>
65        <servlet-name>ServletAdaptor</servlet-name>
66        <url-pattern>/webresources/*</url-pattern>
67    </servlet-mapping>
68   
69     <filter>
70        <filter-name>AAIFilter</filter-name>
71        <filter-class>de.mpg.aai.shhaa.AuthFilter</filter-class>
72    </filter>
73    <filter-mapping>
74        <filter-name>AAIFilter</filter-name>
75        <url-pattern>/*</url-pattern>
76    </filter-mapping>
77</web-app>
Note: See TracBrowser for help on using the repository browser.