title: HTTP method GET is not supported by this URL. (Java rest api with jersey)
body: <p>im following one of the online tutorials for making rest api in java. I work in <code>Eclipse 4.5.2</code>.  When i enter <code>http://localhost:7001/ds2/api/v1/status</code> i got mentioned in a title error. I included <code>Jersey 1.19</code>. Im using <code>Oracle WebLogic Server 12c R2 (12.2.1).</code> Starting page(index) works fine, but anything i would enter after /api/ gives me the same error. </p>
  
  <p>My <code>V1_status.java</code> class:  </p>
  
  <pre><code>package ds2.status;
  
  import javax.ws.rs.*;
  import javax.ws.rs.core.*;
  
  @Path("/v1/status")
  public class V1_status {
      @GET
      @Produces(MediaType.TEXT_HTML)
      public String returnTitle() {
          return "&lt;p&gt;Java Web Service&lt;/p&gt;";
      }
  }
  </code></pre>
  
  <p>My <code>web.xml</code>:</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;display-name&gt;ds2&lt;/display-name&gt;
    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;default.jsp&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
  
    &lt;servlet&gt;
      &lt;servlet-name&gt;Jersey REST Service&lt;/servlet-name&gt;
      &lt;servlet-class&gt;com.sun.jersey.spi.container.servlet.ServletContainer&lt;/servlet-class&gt;
      &lt;init-param&gt;
        &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
        &lt;param-value&gt;ds2&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 REST Service&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/api/*&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
    &lt;/web-app&gt;
  </code></pre>
  
  <p><code>weblogic.xml</code>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;wls:weblogic-web-app xmlns:wls="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.8/weblogic-web-app.xsd"&gt;
      &lt;wls:weblogic-version&gt;12.2.1&lt;/wls:weblogic-version&gt;
      &lt;wls:context-root&gt;ds2&lt;/wls:context-root&gt;
  &lt;/wls:weblogic-web-app&gt;
  </code></pre>
  
  <p>What can cause it or maybe how can i investigate by myslef whats wrong?</p>