请教It is indirectly referenced from required .class files问题

yschat2012 2014-12-16 11:04:29
我把项目从myeclipse导入到eclipse j2ee中。已经导入了,运行后出现下面错误:
java.lang.Error: Unresolved compilation problems:
The type javax.servlet.http.HttpServletRequest cannot be resolved. It is indirectly referenced from required .class files
The type javax.servlet.http.HttpServletResponse cannot be resolved. It is indirectly referenced from required .class files
The import javax.servlet.http.HttpServletRequest cannot be resolved
The import javax.servlet.http.HttpServletResponse cannot be resolved
The type MySuperAction must implement the inherited abstract method ServletResponseAware.setServletResponse(HttpServletResponse)
The type MySuperAction must implement the inherited abstract method ServletRequestAware.setServletRequest(HttpServletRequest)
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletRequest cannot be resolved to a type
HttpServletResponse cannot be resolved to a type
HttpServletResponse cannot be resolved to a type

是不是struts2包的问题?

但我已经导入struts2包啊

在myeclipse6.5运行是没问题的,请高手指点,谢谢!!
...全文
6032 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
yschat2012 2014-12-20
  • 打赏
  • 举报
回复
如果能调试好发给我最好。910360572@qq.com 谢谢!!
yschat2012 2014-12-20
  • 打赏
  • 举报
回复
我把整个源码上传到http://download.csdn.net/detail/yschat2012/8280645麻烦哪位高手帮我看看?
sinat_24636029 2014-12-19
  • 打赏
  • 举报
回复
请上传截图,了解之后在想办法
humanity 2014-12-19
  • 打赏
  • 举报
回复
项目属性中 》Java Build Path 里面添加 "Add ..." > Library > Server Runtime 添加一下你将要运行的服务器环境进去。
wyx100 2014-12-18
  • 打赏
  • 举报
回复
检查检查包。。。
yschat2012 2014-12-18
  • 打赏
  • 举报
回复
高手在哪里???
shixitong 2014-12-17
  • 打赏
  • 举报
回复
包的路径是不是也有问题
shixitong 2014-12-17
  • 打赏
  • 举报
回复
servlet-api对应的jar包有没有?
yschat2012 2014-12-17
  • 打赏
  • 举报
回复
没人知道吗?
yschat2012 2014-12-17
  • 打赏
  • 举报
回复
怎么检查包的路径?

81,090

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧