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