SEVERE: Error configuring application listener of
2016-05-24 00:00
204 查看
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener java.lang.NoClassDefFoundError:
For this error, there can be different solutions. I have noted down the ones that had worked for me.
Solution 1. This is always happened in deployment and debugging environment. In deployment environment, just make sure your server classpath has included the Spring jar library (e.g spring-4.0.4.jar).
In debugging environment, the steps may vary from different IDE, but the solution is same. In Eclipse, developers usually will create a tomcat, jboss…whatever application server for debugging, just make sure the correct Spring jars are included.
Double click on your debugging server
Click on the “Open launch configuration” to access the server environment
Click on the classpath tab
Include the Spring jar file here , it may also required common log jar due to Spring dependency.
Done, run your application again.
.
Solution 2. If you are using Maven as a build tool and downloading dependencies using it, there can be some jar conflict. Because Tomcat servers normally provide some jars such as servlet-api and jpa-api. So if you again included them using maven; there will be problems in identifying them.
Solution 3. If you are using Eclipse as your IDE and using Maven as your build tool and tomcat as your server; remember Tomcat server will not look on the jars which are just inside the folders. For that there's a small trick,
Right click on your project and select properties
From the displayed window, select Deployment Assembly
Select Add
Add Maven dependencies
Click Apply and Click OK
Hope one of these solutions would help you to solve your problem. Happy Coding and make sure that is using Java.
http://stackoverflow.com/questions/15989325/severe-error-configuring-application-listener-of-class-org-springframework-web
For this error, there can be different solutions. I have noted down the ones that had worked for me.
Solution 1. This is always happened in deployment and debugging environment. In deployment environment, just make sure your server classpath has included the Spring jar library (e.g spring-4.0.4.jar).
In debugging environment, the steps may vary from different IDE, but the solution is same. In Eclipse, developers usually will create a tomcat, jboss…whatever application server for debugging, just make sure the correct Spring jars are included.
Double click on your debugging server
Click on the “Open launch configuration” to access the server environment
Click on the classpath tab
Include the Spring jar file here , it may also required common log jar due to Spring dependency.
Done, run your application again.
.
Solution 2. If you are using Maven as a build tool and downloading dependencies using it, there can be some jar conflict. Because Tomcat servers normally provide some jars such as servlet-api and jpa-api. So if you again included them using maven; there will be problems in identifying them.
Solution 3. If you are using Eclipse as your IDE and using Maven as your build tool and tomcat as your server; remember Tomcat server will not look on the jars which are just inside the folders. For that there's a small trick,
Right click on your project and select properties
From the displayed window, select Deployment Assembly
Select Add
Add Maven dependencies
Click Apply and Click OK
Hope one of these solutions would help you to solve your problem. Happy Coding and make sure that is using Java.
http://stackoverflow.com/questions/15989325/severe-error-configuring-application-listener-of-class-org-springframework-web
相关文章推荐
- [iOS] 使用WebViewJavascriptBridge实现OC与JS交互
- Unity游戏画面品质增强,shader和贴图
- Swift专题讲解十七——Optional链
- Android DrawerLayout 侧滑菜单栏
- 最新android APP框架介绍
- Android RxJava使用介绍(二) RxJava的操作符
- iOS开发用到的Mac系统资源库中各种文件的路径
- Java+Android实现DES与四种模式、AES、MD5算法三合一
- ViewDragHelper源码分析
- android开发笔记之Json解析
- Android三级图片缓存
- [Android]Android开源工具项目集合20160523
- 关于handler机制(结合源码及方法的调用去总结)
- android源码解析(二十七)-->HOME事件流程
- 第一个Android crackme(2016-05)
- Android-architecture之MVC、MVP、MVVM、Data-Binding
- Android RxJava使用介绍(一)概念
- android studio 2.0 导入工程
- android中的各类权限
- viewHolder工具类