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, |
---|
22 | see 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 | <listener> |
---|
29 | <listener-class> |
---|
30 | org.springframework.web.context.ContextLoaderListener |
---|
31 | </listener-class> |
---|
32 | </listener> |
---|
33 | <servlet> |
---|
34 | <servlet-name>annotator-backend</servlet-name> |
---|
35 | <servlet-class> |
---|
36 | com.sun.jersey.spi.spring.container.servlet.SpringServlet |
---|
37 | </servlet-class> |
---|
38 | <init-param> |
---|
39 | <param-name> |
---|
40 | com.sun.jersey.config.property.packages |
---|
41 | </param-name> |
---|
42 | <param-value>eu.dasish.annotation.backend</param-value> |
---|
43 | </init-param> |
---|
44 | <load-on-startup>1</load-on-startup> |
---|
45 | </servlet> |
---|
46 | <servlet> |
---|
47 | <servlet-name>ServletAdaptor</servlet-name> |
---|
48 | <servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> |
---|
49 | <load-on-startup>1</load-on-startup> |
---|
50 | </servlet> |
---|
51 | <servlet-mapping> |
---|
52 | <servlet-name>annotator-backend</servlet-name> |
---|
53 | <url-pattern>/api/*</url-pattern> |
---|
54 | </servlet-mapping> |
---|
55 | <!-- <servlet-mapping> |
---|
56 | <servlet-name>ServletAdaptor</servlet-name> |
---|
57 | <url-pattern>/webresources/*</url-pattern> |
---|
58 | </servlet-mapping>--> |
---|
59 | <servlet-mapping> |
---|
60 | <servlet-name>ServletAdaptor</servlet-name> |
---|
61 | <url-pattern>/webresources/*</url-pattern> |
---|
62 | </servlet-mapping> |
---|
63 | <filter> |
---|
64 | <filter-name>springSecurityFilterChain</filter-name> |
---|
65 | <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> |
---|
66 | </filter> |
---|
67 | <filter-mapping> |
---|
68 | <filter-name>springSecurityFilterChain</filter-name> |
---|
69 | <url-pattern>/*</url-pattern> |
---|
70 | </filter-mapping> |
---|
71 | </web-app> |
---|