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