java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

来源:互联网 发布:足球角球数据库 编辑:程序博客网 时间:2024/06/05 11:48
maven 启动报错:

java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

原因:tomcat发布项目时没有同事发布项目锁依赖的jar
解决:项目--》属性--》Deployment Assembly  --》add --》Java Build Path Entries --》Maven Dependencies--》finish

Eclipse juno  Tomcat7 进行web开发,Eclipse不能识别HttpServletRequest,也就是说找不到jar包,

解决方法:

工程名(右击)-->Build Path -->Configure Build Path-->Libraries-->Add Library-->Server Runntime --> Apache tomcat v7.0-->OK

这样导入tomcat  jar包就可以了,其实主要是使用到里面的servlet-api.ja


阅读全文
0 0