71157/error-superclass-javax-servlet-httpservlet-found-java-build
I have a project created by Maven integration in Eclipse. All work fine, but in the work space in all JSP files have this:
The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path
How to fix this error?
Hello @kartik,
Include servlet-api-3.1.jar in your dependencies.
Maven
<dependency> <groupId>javax.servlet</groupId> <artifactId>javax.servlet-api</artifactId> <version>3.1.0</version> <scope>provided</scope> </dependency>
Gradle
configurations { provided } sourceSets { main { compileClasspath += configurations.provided } } dependencies { provided 'javax.servlet:javax.servlet-api:3.1.0' }
Hope this help!!
READ MORE
Hey, You can follow these few steps: From the ...READ MORE
There are combinations of Operating System, JDK ...READ MORE
If you are getting error: could not ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
can you give an example using a ...READ MORE
Hello @kartik, To download sources for your dependencies: mvn ...READ MORE
Hello @kartik, Normally this error occurs when you ...READ MORE
Hello @kartik, The servlet API .jar file must ...READ MORE
OR
Already have an account? Sign in.