maven项目,启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

maven+springMVC项目,项目中能够找到ContextLoaderListener类,却还是启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener的问题

原因分析:有可能是spring-web-x.x.x.RELEASE.jar包没有发布到tomcat下,所以需要再重新发布maven依赖包

项目 —> properties -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -> Finish -> OK,把对应的Maven依赖包也发布到tomcat。

maven项目,启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener