Reason: no servlet-api.jar package
I tried all the methods on the Internet and found that it was the problem with my servlet-api.jar package
It was not placed under the Lib package of tomcat9. Another one was downloaded online and placed on disk D
Solution:
Right-click item — Open Module Settings
Libraries – + — Java – — find servlet-api.jar package, add it to the project, and click apply
Read More:
- [Solved] IDEA JPA Custome Query Error: Can‘t resolve symbol ‘Type‘
- IDEA Import Servlet Package Error [How to Solve]
- Android Studio Cannot resolve symbol [How to Solve]
- How to Solve Tomcat Error: Could not resolve view with name ‘xxx/xxxxxxx‘ in servlet with
- [Solved] Idea Build error. The symbol — Lombok cannot be found
- [Solved] javax.servlet.ServletException: Servlet[springmvc] Servlet.init()
- [Solved] IDEA java Cannot resolve method ‘getName‘ in ***
- [Solved] BASE64Encoder Error: Cannot resolve symbol ‘BASE64Encoder’
- [Solved] IDEA Maven Error: Cannot resolve xxx & Maven Dependencies Error
- [Solved] IDEA Import springboot Project Error: Cannot resolve plugin org.springframework.boot:spring-boot-maven-plugin:<unknown>
- Continuous Error 404 in servlet operation [How to Solve]
- [Solved] Tomcat runs JavaWeb servlet Error 404
- [Solved] Error creating bean with name ‘org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#0‘:
- [Solved] MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.Runtime
- [Solved] JAVA Project Import jstl Error: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
- IDEA was Filed to Start: error launching idea (Failed to create JVM )
- Maven project running servlet jump JSP error: HTTP status 500 – unable to compile class for JSP
- [Solved] Failed to bind properties under ‘spring.servlet.multipart.file-size-threshold‘ to
- IDEA Maven Fail to Download Dependencies Error: ERROR – #org.jetbrains.idea.maven – Cannot reconnect.
- Idea create Maven project Error: [error] no longer supports source option 1.5. Please use version 1.6 or higher, and the idea reports an error: error: Java does not support the error of release version 5