1d18ab8f7c4b435b71bbfc9b819b3c3704612afc
[music.git] / WebContent / WEB-INF / web.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
3     <display-name>MUSIC</display-name>
4     <listener>
5          <listener-class>
6              org.onap.music.main.PropertiesListener
7          </listener-class>
8     </listener>
9     <listener>
10          <listener-class>
11              org.onap.music.main.CronJobManager
12          </listener-class>
13     </listener>
14     <servlet>
15         <servlet-name>music-servlet</servlet-name>
16         <servlet-class>
17             com.sun.jersey.spi.container.servlet.ServletContainer
18         </servlet-class>
19         <!-- this enables jersey jackson logging.   
20         <init-param>
21             <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
22             <param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
23         </init-param> 
24         -->    
25         <init-param>
26             <param-name>com.sun.jersey.config.property.packages</param-name>
27             <param-value>
28                 io.swagger.jaxrs.json,
29                 io.swagger.jaxrs.listing,
30                 org.onap.music.rest,
31                 org.onap.music.exceptions,
32                 org.onap.music.conductor.conditionals
33             </param-value>
34         </init-param>
35         <init-param>
36             <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
37             <param-value>true</param-value>
38         </init-param>
39         <load-on-startup>1</load-on-startup>
40     </servlet>
41     <servlet>
42         <servlet-name>Jersey2Config</servlet-name>
43         <servlet-class>io.swagger.jaxrs.config.DefaultJaxrsConfig</servlet-class>
44         <init-param>
45             <param-name>api.version</param-name>
46             <param-value>1.0.0</param-value>
47         </init-param>
48         <init-param>
49             <param-name>swagger.api.basepath</param-name>
50             <param-value>http://localhost:8080/MUSIC/rest</param-value>
51         </init-param>
52         <load-on-startup>2</load-on-startup>
53     </servlet>
54     <servlet-mapping>
55         <servlet-name>music-servlet</servlet-name>
56         <url-pattern>/rest/*</url-pattern>
57     </servlet-mapping>
58     <welcome-file-list>
59         <welcome-file>index.html</welcome-file>
60         <welcome-file>index.htm</welcome-file>
61         <welcome-file>index.jsp</welcome-file>
62         <welcome-file>default.html</welcome-file>
63         <welcome-file>default.htm</welcome-file>
64         <welcome-file>default.jsp</welcome-file>
65     </welcome-file-list>
66 </web-app>
67 <!-- 
68  ============LICENSE_START==========================================
69  org.onap.music
70  ===================================================================
71   Copyright (c) 2017 AT&T Intellectual Property
72  ===================================================================
73   Licensed under the Apache License, Version 2.0 (the "License");
74   you may not use this file except in compliance with the License.
75   You may obtain a copy of the License at
76  
77      http://www.apache.org/licenses/LICENSE-2.0
78  
79   Unless required by applicable law or agreed to in writing, software
80   distributed under the License is distributed on an "AS IS" BASIS,
81   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
82   See the License for the specific language governing permissions and
83   limitations under the License.
84  
85  ============LICENSE_END=============================================
86  ====================================================================
87 -->