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!!
I have a project created by Maven ...READ MORE
READ MORE
Hey, You can follow these few steps: From the ...READ MORE
If you have a jstl.jar file while ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...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
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.