title: java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map; when deploying jersey ws to Weblogic
body: <p>I'm deploying a web service application on Weblogic 12. The application uses jersey and thus depends on <strong>javax.ws.rs-api:2.0.1</strong> library.</p>
  
  <p>However when I deploy it to server I have a following error : </p>
  
  <pre><code>Caused By: java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map;
      at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:304)
      at org.glassfish.jersey.server.ApplicationHandler.&lt;init&gt;(ApplicationHandler.java:285)
      at org.glassfish.jersey.servlet.WebComponent.&lt;init&gt;(WebComponent.java:311)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
      at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:358)
      at javax.servlet.GenericServlet.init(GenericServlet.java:240)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:337)
      at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:288)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
  ...
  </code></pre>
  
  <p>I think that weblogic might have it's own version of javax.ws.rs.core.Application that doesn't have this getProperties() method. I'm packaging the application in a WAR file and tried to use </p>
  
  <pre><code>  &lt;container-descriptor&gt;
      &lt;prefer-web-inf-classes&gt;true&lt;/prefer-web-inf-classes&gt;
    &lt;/container-descriptor&gt;
  </code></pre>
  
  <p>in <strong>weblogic.xml</strong>, to explicitly tell Weblogic to use 2.0.1 version of this library.</p>
  
  <p>Nothing helped so far, the issue still in place..</p>
  
  <p>Thanks.</p>