java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener为什么找不到?
来源:互联网 发布:wireshark过滤mac 编辑:程序博客网 时间:2024/06/07 07:25
原文转至:http://www.cnblogs.com/JsonShare/p/5474945.html
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Standard Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext-*.xml,classpath*:applicationContext-*.xml</param-value>
</context-param>
但当tomcat启动时就报这个错误
原因是因为:maven dependencies并没有直接性的被加载,需要重新再添加到项目中
解决办法:
点击 Properties 选择Deployment Assembly 再点击右边的Add按钮 选择Java Build Path Entries后点击Next按钮 然后选择你的Maven Dependencies 确定即可
如果已经有了Maven Dependencies 的话,将其移除,clean一下项目,然后再重新添加
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener为什么找不到?
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener为什么找不到?
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener找不到这个类但是jar包有
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 问题原因。
- 关于java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener错误解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- Java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- Python win10系统下创建发布
- 常见排序算法效率比较
- 1010一元多项式求导(模拟)
- 实习感悟
- java多线程学习笔记(一)
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener为什么找不到?
- 易语言[星]排序框架
- 一步一步在idea中创建web工程(非maven)
- HUE安装与配置
- 文章收藏
- 全文搜索引擎 Elasticsearch 集群搭建入门教程
- 2017 ACM-ICPC 亚洲区(乌鲁木齐赛区)网络赛
- 一款非常好用的全景生成,全景标记编辑插件!
- cocos2dx中zip包读取解压使用