title: Swagger.json is not generated in Jersey + Tomcat8
body: <p>pom.xml</p>
  
  <pre><code>&lt;dependency&gt;
                  &lt;groupId&gt;io.swagger&lt;/groupId&gt;
                  &lt;artifactId&gt;swagger-jersey2-jaxrs&lt;/artifactId&gt;
                  &lt;version&gt;1.5.7&lt;/version&gt;
                  &lt;exclusions&gt;
                      &lt;exclusion&gt;
                          &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
                          &lt;artifactId&gt;jersey-container-servlet-core&lt;/artifactId&gt;
                      &lt;/exclusion&gt;
                  &lt;/exclusions&gt;
              &lt;/dependency&gt;
  </code></pre>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://xmlns.jcp.org/xml/ns/javaee"
      xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
      id="WebApp_ID" version="3.1"&gt;
  
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;Jersey Web Application&lt;/servlet-name&gt;
          &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;jersey.config.server.provider.packages&lt;/param-name&gt;
              &lt;param-value&gt;io.swagger.jaxrs.listing,
              rs
              &lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Jersey Web Application&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/webapi/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  
  
       &lt;servlet&gt;
          &lt;servlet-name&gt;Jersey2Config&lt;/servlet-name&gt;
          &lt;servlet-class&gt;io.swagger.jersey.config.JerseyJaxrsConfig&lt;/servlet-class&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;api.version&lt;/param-name&gt;
              &lt;param-value&gt;1.0&lt;/param-value&gt;
          &lt;/init-param&gt;
  
          &lt;init-param&gt;
              &lt;param-name&gt;swagger.api.title&lt;/param-name&gt;
              &lt;param-value&gt;Swagger APIzz&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;swagger.api.basepath&lt;/param-name&gt;
              &lt;param-value&gt;http://localhost:8080/SwaggerExample/webapi&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;swagger.pretty.print&lt;/param-name&gt;
              &lt;param-value&gt;true&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;init-param&gt;
              &lt;param-name&gt;swagger.scan&lt;/param-name&gt;
              &lt;param-value&gt;true&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;2&lt;/load-on-startup&gt;
      &lt;/servlet&gt; 
  &lt;/web-app&gt;
  </code></pre>
  
  <p>SwaggerExample is context root</p>
  
  <p>PeopleRestService.java is present inside rs package </p>
  
  <pre><code>@Path( "/people" ) 
  @Api( value = "/", description = "Manage people" )
  public class PeopleRestService {
  
       private static PeopleService peopleService;
  
      static{
          peopleService = new PeopleService();
      }
  
      @Produces( { MediaType.APPLICATION_JSON } )
      @GET
      @ApiOperation( value = "List all people", notes = "List all people using paging", response = Person.class, responseContainer = "List")
      public Collection&lt; Person &gt; getPeople(  @ApiParam( value = "Page to fetch", required = true ) @QueryParam( "page") @DefaultValue( "1" ) final int page ) {
          System.out.println("inside service........");
          return peopleService.getPeople( page, 100 );
      }
  }
  </code></pre>
  
  <p>Above code is able get the data via <code>webservice</code> but on accessing swagger.json, it is giving 404 </p>
  
  <blockquote>
    <p><a href="http://localhost:8080/SwaggerExample/webapi/people" rel="nofollow noreferrer">http://localhost:8080/SwaggerExample/webapi/people</a>  : is working fine</p>
    
    <p><a href="http://localhost:8080/SwaggerExample/webapi/swagger.json" rel="nofollow noreferrer">http://localhost:8080/SwaggerExample/webapi/swagger.json</a>  : is giving 404</p>
  </blockquote>