The Javax.servlet.http.HttpServletRequest class was used in the recent project to find out the default jar package for idea, and tried the following:
1. Add Servlet-api.jar and Jsp-api.jar to the libraries of the project without prompting for errors, but Maven compiles the prompt to not find the class
2. Add references to Servlet-api.jar and Jsp-api.jar in Classpath, with 1 effect
3. The following dependencies are added to Maven
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-servlet_2.4_spec</artifactId>
<version>1.1.1</version>
<scope>provided</scope>
</dependency>
This is the jar that Geronimo has distributed externally to the servlet that can give open source code, passing the sun's CTK compatibility test. Save the original load Jndi,jdbc,servlet,jsp,jta
Problem Solving!!!
Maven Project Tip could not find javax.servlet.xxx problem solved