报错: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 包到你的 classpath (右键点击某个jar包--build path--config build path...---liberary---Add external jar library),此处加入 servelet-api.jar(此包在eclipse/plugins目录中可以找得到,其他类似的错误也用相同的方法解决) 到 classpath ,OK 。
java.lang.NoClassDefFoundError: org/springframework/beans/factory/BeanFactory
If you're getting that error the class simply isn't there. Please double check that you have properly added the spring classes to the classpath of the app.