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

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

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

时间: 2024-10-17 09:38:04

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from的相关文章

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files

我的方法:是缺少servlet的引用库,解决如下 1.工程右键-properties->java build path 2.在java build path的libraries tab页中选择Add external Jars...按钮.server runtime -->next--->选择你要选用的tomcat即可问题解决了.网上别的方法(我没有尝试过): 1.工程右键-properties->java build path 2.在java build path的librari

The type javax.servlet.http.HttpServletRequest cannot be resolved.

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files   是缺少serverlet的引用库,解决如下 1.工程右键-properties->java build path 2.在java build path的libraries tab页中选择Add external Jars...按钮 3. 选择eclip

Java异常The type javax.servlet.http.HttpServletRequest cannot be resolved

The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files. 这个错误表示的意思还不太清楚,可能是,myeclipse不会自动找这个包servlet.jar,就算在相应工程/WebRoot/WEB-INF/lib里面,而且奇怪的是该错误提示总是在代码的最前面 ( 第一行位置 ) 解决办法:加入相关类的 jar 包到

The type javax.servlet.http.HttpServletRequest cannot be resolved.的解决方法

Bug的描述 The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files 解决方法 是缺少serverlet的引用库,解决如下 1.工程右键-properties->java build path 2.在java build path的libraries tab页中选择Add external Jars...按钮

ERROR:The type javax.servlet.http.HttpServletRequest cannot be resolved.

MyEclipse中附加工程出现如下错误:The type javax.servlet.http.HttpServletRequest cannot be resolved.  解决方法如下: (1)右键工程找到build path项 (2)找到Add Libraries (3)点击myEclipse Libraries,Next (4)添加JavaEE 5

eclipse中 报出The type javax.servlet.http.HttpServlet cannot be resolved. It is indirect错误

在Myeclispe部署项目后 报错 The type javax.servlet.http.HttpServlet cannot be resolved. It is indirect错误 如果在MyEclipse中遇到这种情况,也就是HttpServletRequest报红叉的时候,这样做1.右键工程找到build path项2.找到Add Libraries3.点击myEclipse Libraries,Next4.添加JavaEE 5OK

在Myeclipse buildpath 加server lib (server runtime)/项目导入时报错:The import javax.servlet.http.HttpServletRequest cannot be resolved

来源于:http://blog.csdn.net/dingqinghu/article/details/8805922 http://yl-fighting.iteye.com/blog/1409468 使用Myeclipse,将eclipse下的工程复制过来后,发现提示Tomcat 7.0 unbound.缺少Server Runtime. 解决方法如下:1,File->New->Other->Server->Server(注意在new时,需要勾上Show All Wizards

The import javax.servlet.http.HttpServletRequest cannot be resolved解决方案

废了2个小时查找jdk版本如何更新本以为是这个的问题 原来并不是这个问题 因为你还没有导入servlet-api.jar包 导入方法:右键你的工程属性,然后如图 选择导入的外部jar要到你的tomcat安装目录下的bin目录下选择servlet-api.jar The import javax.servlet.http.HttpServletRequest cannot be resolved解决方案

项目导入时报错:The import javax.servlet.http.HttpServletRequest cannot be resolved

Error: The import javax.servlet cannot be resolved The import javax.servlet.http.HttpServletRequest cannot be resolved Description: 我们经常会把别人的项目copy到自己这里进行二次开发或者参考,有的时候会发生上面的错误, 即eclipse项目里我们导入的项目里提示HttpServletRequest 不能引用,会伴随头疼的小红叉出现. Accuse: 具体原因是我们