在eclipse中运行spring web application时的异常: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
2017-02-04 17:23
1061 查看
严重: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener .......
tomcat再发布web项目时,并没有将maven的依赖包一起随项目的编译一并进行打包。
解决办法
打开eclipse项目属性 (点击项目名,鼠标右键选"Properties").
选择 "Deployment Assembly".
点击"Add..."项
从菜单中选择 "Java Build Path Entries", 然后"Next".
从Java Build Path Entries菜单中选择"Maven Dependencies",然后"Finish".
此时可以看到"Maven Dependencies"已经被加入到Web Deployment Assembly定义中.
相关文章推荐
- maven项目运行报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- tomcat : Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.ClassNotFoundException:
- Eclipse启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 一个困扰很久的异常java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- 真正解决问题:maven eclipse tomcat java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener--转
- Tomcat 启动报java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener 异常
- Tomcat运行报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- Maven工程运行报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- maven 项目出现 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
- maven项目 启动报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- SSH框架问题——java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener报错
- 【java】—— 真正解决java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener