title: ClassNotFoundException on Jersey2Config (io.swagger.jersey.config.JerseyJaxrsConfig)
body: <p>I have configured my project for swagger, my project is maven, struts, hibernate. I have added dependency in pom </p>
  
  <pre><code>&lt;!-- Swagger --&gt;
          &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.2&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
                      &lt;artifactId&gt;jackson-core&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
                      &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
                  &lt;exclusion&gt;
                      &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
                      &lt;artifactId&gt;jackson-annotations&lt;/artifactId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>and web.xml is like this:</p>
  
  <pre><code>&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.0&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;/PatientApp/services/&lt;/param-value&gt;
          &lt;/init-param&gt;
          &lt;load-on-startup&gt;2&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  </code></pre>
  
  <p>core filters added as well:</p>
  
  <pre><code>&lt;filter&gt;
          &lt;filter-name&gt;CorsFilter&lt;/filter-name&gt;
          &lt;filter-class&gt;org.apache.catalina.filters.CorsFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;CorsFilter&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>But when i try to run the project it gives me error. stack trace is under fellow:</p>
  
  <pre><code>Oct 14, 2015 5:40:18 PM org.apache.catalina.core.ApplicationContext log
  INFO: Marking servlet Jersey2Config as unavailable
  Oct 14, 2015 5:40:18 PM org.apache.catalina.core.StandardContext loadOnStartup
  SEVERE: Servlet /PatientApp threw load() exception
  java.lang.ClassNotFoundException: io.swagger.jersey.config.JerseyJaxrsConfig
  </code></pre>