出现java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener解决方案
2017-07-27 15:33
661 查看
再 maven 项目用tomcat启动时,有时会出现以下几个错误中的一个或全部:
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.util.IntrospectorCleanupListener java.lang.ClassNotFoundException: ch.qos.logback.ext.spring.web.LogbackConfigListener
一般是项目的Maven Dependencies没有添加到项目的编译路径下。
解决办法:选中项目名称右键 –> Properties –> Deployment Assemby –> Add –> Java Build Path Entries –> Finish –> Apply –> OK
添加完成之后如下图所示:
然后在启动就可以啦..给自己留点脚印
转载于:http://www.cnblogs.com/guyezhai/p/5217632.html
相关文章推荐
- maven工程出现java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 我的maven项目出现java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- 启动tomcat出现java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- 部署maven项目出现错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener