The type javax.http.HttpServletRequest cannot be resolved.It is indirectly

简介:

错误:The type javax.http.HttpServletRequest cannot be resolved.It is indirectly....

原因:项目中缺少servlet-api.jar文件。

解决办法:将D:/Program Files/Apache Software Foundation/Tomcat 5.5/common/lib下的servlet-api.jar拷贝到项目中,然后编译即可。


相关文章
|
1天前
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
324 0
|
1天前
|
Java Maven
Cannot access repo1 (http://repo1.maven.org/maven2) in offline mode and the
Cannot access repo1 (http://repo1.maven.org/maven2) in offline mode and the
|
SQL Linux
Cannot connect to discovery server for announce: Announcement failed for http://hadoop102:8881
linux下启动Presto报错:Cannot connect to discovery server for announce: Announcement failed for http://hadoop102:8881
Cannot connect to discovery server for announce: Announcement failed for http://hadoop102:8881
|
1天前
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
spring3 springfox报错Type javax.servlet.http.HttpServletRequest not present
60 0
|
10月前
No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘ avail
No qualifying bean of type ‘org.springframework.boot.autoconfigure.http.HttpMessageConverters‘ avail
114 1
【node报错解决方案】Error: Cannot find module http-errors
【node报错解决方案】Error: Cannot find module http-errors
282 0
【node报错解决方案】Error: Cannot find module http-errors
|
存储 NoSQL Java
java.lang.IllegalStateException: Cannot load configuration class: org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration
java.lang.IllegalStateException: Cannot load configuration class: org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration报错问题处理
java.lang.IllegalStateException: Cannot load configuration class: org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration
|
Java 应用服务中间件 Apache
Eclipse中出现The type javax.servlet.http.HttpServletRequest cannot be resolved问题
Eclipse中出现The type javax.servlet.http.HttpServletRequest cannot be resolved问题
302 0
Eclipse中出现The type javax.servlet.http.HttpServletRequest cannot be resolved问题
|
Apache
解决办法:Cannot find the class file for org.apache.http.client.ClientProtocolException
解决办法:Cannot find the class file for org.apache.http.client.ClientProtocolException
313 0
|
Android开发
The type org.apache.http.NameValuePair cannot be resolved. It is indirectly referenced from requi...
eclipse莫名其妙的bug 解决方案如下,把编译的android版本调低就可以了 调低编译版本
1599 0