java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

来源:互联网 发布:动作数据 编辑:程序博客网 时间:2024/06/08 01:49

导入同事工程,报错:
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener

最终按如下操作解决:
I had a similar problem when running a spring web application in an Eclipse managed tomcat. I solved this problem by adding maven dependencies in the project’s web deployment assembly.

Open the project’s properties (e.g., right-click on the project’s name in the project explorer and select “Properties”).
Select “Deployment Assembly”.
Click the “Add…” button on the right margin.
Select “Java Build Path Entries” from the menu of Directive Type and click “Next”.
Select “Maven Dependencies” from the Java Build Path Entries menu and click “Finish”.
You should see “Maven Dependencies” added to the Web Deployment Assembly definition.

原文地址:http://stackoverflow.com/questions/6210757/java-lang-classnotfoundexception-org-springframework-web-context-contextloaderl/30054250

0 0
原创粉丝点击