• Register
0 votes
138 views

Problem :

I created a project by Maven integration in Eclipse , but in the work space in all JSP files have bellow message:

The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path

6.9k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

1. For an Ant project:

Please make sure you have servlet-api.jar in the lib folder.

2. For a Maven project:

Please make sure you have the dependency added in POM.xml.

<dependency>
  <groupId>javax.servlet</groupId>
  <artifactId>javax.servlet-api</artifactId>
  <version>3.1.0</version>
  <scope>provided</scope>
</dependency>

3. Another way to do it is

Please update the project facets to pick up the right server.

Please check this box in this location:

Project → Properties → Target Runtimes → Apache Tomcat (**any server**)

38.6k points

Related questions

0 votes
1 answer 5 views
5 views
Problem: Is there a way to get around this : The superclass javax.servlet.http.httpservlet was not found on the java?
asked Jun 17 Rada Gracelynn 104k points
0 votes
0 answers 13 views
13 views
Problem: Need an answer for this: The superclass "javax.servlet.http.httpservlet" was not found on the java build path
asked Jun 13 asha 121k points
0 votes
1 answer 7 views
7 views
Problem : What is the most effective strategy for me to resolve this issue: He superclass "javax.servlet.http.httpservlet" was not found on the java build path?
asked Jun 13 Siam55 110k points
0 votes
1 answer 19 views
19 views
Problem : What is the best way for me to address this problem: The superclass javax. servlet.HTTP.httpservlet was not found on the java build path on the JSP page?
asked Jun 10 Sifat55 108k points
0 votes
1 answer 24 views
24 views
Problem: Can anyone tell me the solution of this problem? the superclass javax.servlet.http.httpservlet was not found on the java build path in jsp
asked Apr 6 Ifra 43.4k points
0 votes
1 answer 40 views
40 views
Problem: I need someone&rsquo;s help to fix it .. the superclass javax.servlet.http.httpservlet was not found on the java build path error in eclipse
asked Apr 6 Ifra 43.4k points
0 votes
1 answer 4 views
4 views
Problem: Asked few friends but no solution, please help : Javax.servlet.http.httpservlet was not found on the java build path
asked Jun 18 Sawyer Parviz 168k points
0 votes
1 answer 29 views
29 views
How can I solve this problem?
asked Dec 27, 2020 TeamScript 13.5k points