The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path by Below dependency needs to be added. javax.servlet javax.servlet-api 3.1.0 provided