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

导入同事工程,报错:
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

阅读更多
文章标签: spring 加载错误
上一篇ZooKeeper界面管理工具 zkdash安装
下一篇JAVA中获取pid的方法
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭