码迷,mamicode.com
首页 > 移动开发 > 详细

使用Maven构建javaWeb项目时,启动tomcat出错:严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.conte

时间:2016-07-15 20:07:16      阅读:274      评论:0      收藏:0      [点我收藏+]

标签:

在初学使用maven构建javaWeb的项目的时候,启动tomcat加载时,总是提示如下错误,辛苦一番终于找到解决办法。

严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

根本原因:jar文件没有同步发布到自己项目的lib目录中

解决办法:项目点击右键 点击 Properties 选择Deployment Assembly

  再点击右边的Add按钮 选择Java Build Path Entries后点击Next按钮 然后选择你的Maven Dependencies 确定即可

技术分享

 技术分享

技术分享

至此,问题已经解决。

 

使用Maven构建javaWeb项目时,启动tomcat出错:严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.conte

标签:

原文地址:http://www.cnblogs.com/suixue/p/5674377.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!