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