导入maven项目运行出错:eclipse 启动tomcat出错:严重: Error configuring application listener of class org.springframe

我是照这方法弄好的  把maven的依赖加入编译的环境里 

 

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

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

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

 

 

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

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

 

 

 

 

 

导入maven项目运行出错:eclipse 启动tomcat出错:严重: Error configuring application listener of class org.springframe

导入maven项目运行出错:eclipse 启动tomcat出错:严重: Error configuring application listener of class org.springframe

导入maven项目运行出错:eclipse 启动tomcat出错:严重: Error configuring application listener of class org.springframe

导入maven项目运行出错:eclipse 启动tomcat出错:严重: Error configuring application listener of class org.springframe