title: Find which dependency need jsr311-api-1.1.1
body: <p>I'm facing a : </p>
  
  <pre><code> org.apache.catalina.core.ApplicationContext.log StandardWrapper.Throwable
   java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
          at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:330)
          at org.glassfish.jersey.servlet.WebComponent.&lt;init&gt;(WebComponent.java:339)
          at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
          at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:362)
          at javax.servlet.GenericServlet.init(GenericServlet.java:158)
          at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
          at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
          at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:779)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:133)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
          at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
          at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803)
          at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
          at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
          at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
          at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
          at java.lang.Thread.run(Thread.java:748)
  </code></pre>
  
  <p>So looking at those posts : <a href="https://stackoverflow.com/questions/36813274/nosuchmethoderror-javax-ws-rs-core-application-getpropertiesljava-util-map">Link 1</a> and <a href="https://stackoverflow.com/questions/28509370/nosuchmethoderror-on-startup-in-java-jersey-app">Link 2</a> I try a proposed solution (2nd link) which is : "Excluding <strong>jsr311-api-1.1.1</strong> from my dependencies.</p>
  
  <p>jsr311-api-1.1.1.jar is in my target/WEB-INF/lib/. I ran <em>mvn dependency:tree -Dverbose -Dincludes=jsr311-api-1.1.1</em> but nothing results from that. </p>
  
  <p>Any idea of how I can remove this .jar ? </p>
  
  <p>Here's my pom.xml : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;myGroupId&lt;/groupId&gt;
      &lt;artifactId&gt;myArtifactId&lt;/artifactId&gt;
      &lt;version&gt;1.5.0_RC10-SNAPSHOT&lt;/version&gt;
      &lt;properties&gt;
          &lt;esd.common.version&gt;1.5.0_RC9-SNAPSHOT&lt;/esd.common.version&gt;
          &lt;eGuichet.version&gt;1.0.0_RC3&lt;/eGuichet.version&gt;
          &lt;axis2.version&gt;1.6.3&lt;/axis2.version&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
          &lt;maven.plugin.war.version&gt;2.6&lt;/maven.plugin.war.version&gt;
      &lt;/properties&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
      &lt;scm&gt;
          &lt;connection&gt;something&lt;/connection&gt;
      &lt;/scm&gt;
  
      &lt;dependencies&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.11&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Jersey for Rest service --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.glassfish.jersey.containers&lt;/groupId&gt;
              &lt;artifactId&gt;jersey-container-servlet&lt;/artifactId&gt;
              &lt;version&gt;2.18&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
              &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
              &lt;version&gt;5.2.2.Final&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- Start Axis 2 --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.axis2&lt;/groupId&gt;
              &lt;artifactId&gt;axis2-kernel&lt;/artifactId&gt;
              &lt;version&gt;${axis2.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.axis2&lt;/groupId&gt;
              &lt;artifactId&gt;axis2-transport-http&lt;/artifactId&gt;
              &lt;version&gt;${axis2.version}&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;artifactId&gt;httpcore&lt;/artifactId&gt;
                      &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.axis2&lt;/groupId&gt;
              &lt;artifactId&gt;axis2-transport-local&lt;/artifactId&gt;
              &lt;version&gt;${axis2.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.axis2&lt;/groupId&gt;
              &lt;artifactId&gt;axis2-xmlbeans&lt;/artifactId&gt;
              &lt;version&gt;${axis2.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.httpcomponents&lt;/groupId&gt;
              &lt;artifactId&gt;httpmime&lt;/artifactId&gt;
              &lt;version&gt;4.5.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;!-- End Axis --&gt;
  
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;finalName&gt;${project.artifactId}&lt;/finalName&gt;
          &lt;filters&gt;
              &lt;filter&gt;${basedir}/src/profiles/${build.profile.id}/conf.properties&lt;/filter&gt;
          &lt;/filters&gt;
          &lt;resources&gt;
              &lt;resource&gt;
                  &lt;directory&gt;src/main/resources&lt;/directory&gt;
                  &lt;filtering&gt;true&lt;/filtering&gt;
              &lt;/resource&gt;
          &lt;/resources&gt;
          &lt;!-- &lt;pluginManagement&gt; --&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;tagBase&gt;something&lt;/tagBase&gt;
                      &lt;!-- skip the Javadoc generation as Java 8 is strict when it comes to
                          Javadoc and most devs don't comply to all rules --&gt;
                      &lt;arguments&gt;-Dmaven.javadoc.skip&lt;/arguments&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;connectionType&gt;connection&lt;/connectionType&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;${java.version}&lt;/source&gt;
                      &lt;target&gt;${java.version}&lt;/target&gt;
                      &lt;verbose&gt;true&lt;/verbose&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;!-- Tomcat 7 for easy debugging --&gt;
              &lt;!-- mvn -P eclipse clean package tomcat7:run-war --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
                  &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.2&lt;/version&gt;
  
                  &lt;configuration&gt;
                      &lt;port&gt;8081&lt;/port&gt;
                      &lt;path&gt;/PortalServer&lt;/path&gt;
                      &lt;systemProperties&gt;
                          &lt;log4j.configuration&gt;file:${basedir}/src/test/resources/log4j.properties&lt;/log4j.configuration&gt;
                      &lt;/systemProperties&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
      &lt;distributionManagement&gt;
          &lt;repository&gt;
              something
          &lt;/repository&gt;
          &lt;snapshotRepository&gt;
              something
          &lt;/snapshotRepository&gt;
      &lt;/distributionManagement&gt;
  
      &lt;repositories&gt;
          &lt;repository&gt;
              &lt;id&gt;something.internal&lt;/id&gt;
              &lt;name&gt;internal&lt;/name&gt;
              &lt;url&gt;something&lt;/url&gt;
          &lt;/repository&gt;
      &lt;/repositories&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>And if you have an other solution for my problem, don't hesitate.</p>
  
  <p>PS: I'm using Tomcat 8.5 but I don't think it's relevant.</p>