title: GlassFish Server HTTP Status 404 - Not Found
body: <p>Product Version = NetBeans IDE 8.1 
  GlassFish Server Open Source Edition 4.1
  I have a very simple web application created with Netbeans 7.0.1 which includes only a RESTful Webservice.
  Here my jsp file</p>
  
  <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;!DOCTYPE html&gt;
   &lt;html&gt;
      &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;JSP Page&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;TEST !&lt;/h1&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I deploy the project to my locally installed Glassfish and run the projet named (MyRest) in get <a href="http://http://localhost:8080/MyRest" rel="nofollow">http://http://localhost:8080/MyRest</a> in my browser everything is executed as expected what means that I can see my "TEST !" message.</p>
  
  <p>Now changing to NetBeans I open in my project the node "RESTful Web Services", make a right-click on any HTTP method and choose "Test Resource Uri" from the context menu. After that a warning dialog shows up with the following message:</p>
  
  <pre><code>Unable to open resource url:
  http://localhost:8080/MyRest/webresources/service/getJsonWithParam
  Make sure the project has been deployed successfully, and the server is
  running.
  </code></pre>
  
  <p>I even tried to change the url manually then I get </p>
  
  <pre><code>HTTP Status 404 - Not Found
  type Status report
  
  messageNot Found
  
  descriptionThe requested resource is not available.
  
  
  GlassFish Server Open Source Edition 4.1
  </code></pre>
  
  <p>Any help please ?</p>