java.lang.NoClassDefFoundError: HttpServletRequest

在eclipse里启动tomcat报错,错误日志:Caused by: java.lang.ClassNotFoundException: HttpServletRequest

在build path里的tomcat的版本不对,

解决方案:

Right click on the project in eclipse Properties -> Java Build Path -> Add library -> Server Runtime Library -> Apache Tomcat

posted @ 2017-11-01 16:54  虎头  阅读(4396)  评论(0编辑  收藏  举报