title: Java servlet is not affected by code change
body: <p>I made a hello world servlet that works fine</p>
  
  <pre><code>@WebServlet("/HelloWorld")
  public class HelloWorld extends HttpServlet {
  private static final long serialVersionUID = 1L;
  
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
      // TODO Auto-generated method stub
      response.setContentType("text/html");
      PrintWriter out = response.getWriter();
      out.print("&lt;html&gt;&lt;body&gt;");
      out.print("&lt;h3&gt;Hello World&lt;/h3&gt;");
      out.print("&lt;/body&gt;&lt;/html&gt;");
  }
  </code></pre>
  
  <p>}</p>
  
  <p>When i run it on server (Apache Tocmat 8.0 at localhost) i get the desired response (An html page display "Hello World").</p>
  
  <p>Here's what's weird. After i make a change in the code </p>
  
  <pre><code>    out.print("&lt;html&gt;&lt;body&gt;");
      out.print("&lt;h3&gt;Not a hello world servlet anymore!&lt;/h3&gt;");
      out.print("&lt;/body&gt;&lt;/html&gt;");
  </code></pre>
  
  <p>and I save and run on server again (restarting the server), i dont get the modified html page and still get the old one ("Hello World" page).</p>
  
  <p>This problem is solved by closing eclipse and starting it again. After that, when i run on server my servlet, I get the desired response ("Not a hello world servlet anymore!"). </p>
  
  <p>How can i make it so i don't have to restart eclipse for my changes to take effect?</p>