title: Servlet's service and init method are being called, but not doGet
body: <p>I have a simple Servlet that looks like this:</p>
  
  <pre><code>import java.io.IOException;
  import java.io.PrintWriter;
  
  import javax.servlet.ServletException;
  import javax.servlet.ServletRequest;
  import javax.servlet.ServletResponse;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  public class Bla extends HttpServlet {
  
      private static final long serialVersionUID = 16252534;
  
      @Override
      public void init() throws ServletException {
          System.out.println("init");
      }
      @Override
      public void doGet(HttpServletRequest req, HttpServletResponse resp)
              throws ServletException, IOException {
          System.out.println("doGet");
          resp.setContentType("text/html");
          PrintWriter out = resp.getWriter();
          out.println("&lt;html&gt;&lt;h1&gt;It works!!&lt;/h1&gt;&lt;/html&gt;");
      }
  
      @Override
      public void service(ServletRequest req, ServletResponse resp) throws ServletException, IOException {
          System.out.println("service");
  
      }
  
      @Override
      public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
          System.out.println("doPost");
      }
  
      @Override
      public void destroy() {
          System.out.println("Destroy servlet");
      }
  }   
  </code></pre>
  
  <p>and a <strong>web.xml</strong> that looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  
  &lt;web-app&gt;
      &lt;display-name&gt;Archetype Created Web Application&lt;/display-name&gt;
  
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;Bla&lt;/servlet-name&gt;
          &lt;servlet-class&gt;instrurental_proj.servlets.Bla&lt;/servlet-class&gt;
      &lt;/servlet&gt;
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Bla&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/bla&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>When I visit the url <code>http://localhost:8080/instrurental/bla</code>, the following is printed out in the console:</p>
  
  <pre><code>init
  service
  </code></pre>
  
  <p>but not <code>doGet</code> as I expect. Also, nothing is printed out in the browser! (I'm expecting it to say "It Works").</p>
  
  <p>I've been struggling with this issue since yesterday. Does anyone have any suggestions, <strong>what could the problem be?</strong></p>