title: tomcat8 - javax.servlet cannot be resolved
body: <p>I am using Tomcat8.0.3 and I have following servlet (testing purposes):
  (eclipse version 4.3.1 on 64bit Ubuntu)</p>
  
  <pre><code>package test;
  
  import javax.servlet.http.HttpServlet;
  public class Hello extends HttpServlet {
      // ...
  }
  </code></pre>
  
  <p>After the start of Tomcat and running this servlet in Eclipse, I get this:</p>
  
  <pre><code>java.lang.Error: Unresolved compilation problems: 
  The import javax.servlet cannot be resolved
  HttpServlet cannot be resolved to a type
  </code></pre>
  
  <p>I have everything set up as it is here: <a href="https://stackoverflow.com/questions/4076601/how-do-i-import-the-javax-servlet-api-in-my-eclipse-project">How do I import the javax.servlet API in my Eclipse project?</a>
  But still it doesn't work.</p>
  
  <p>Could somebody help what to do please?</p>
  
  <p><strong>Interesting is with Tomcat 7 everything works, but with Tomcat 8 it didn't.</strong></p>