Spring错误:java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
来源:互联网 发布:广东电视台新闻大数据 编辑:程序博客网 时间:2024/05/16 17:19
第一次搭建Spring框架,编写并运行例子时出现如下错误:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactoryat org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:164)at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:228)at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:89)at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:58)at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61)at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:136)at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)at com.chapter1.TestSpring.main(TestSpring.java:11)Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactoryat java.net.URLClassLoader$1.run(URLClassLoader.java:366)at java.net.URLClassLoader$1.run(URLClassLoader.java:355)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(URLClassLoader.java:354)at java.lang.ClassLoader.loadClass(ClassLoader.java:425)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)at java.lang.ClassLoader.loadClass(ClassLoader.java:358)... 8 more
解决方法:缺少commons-logging.jar,下载jar包(如commons-logging-1.2.jar),添加到项目中。
0 0
- Spring错误:java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- 错误提示:java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- Caused by: java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- Caused by: java.lang.ClassNotFoundException:org.apache.commons.logging.LogFactory
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- struts2错误 : java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
- Volley框架 以及 设置request超时时间
- ArcGIS 教程:Spatial Analyst 扩展模块中的分析
- linux进程的睡眠和唤醒
- 验证控件
- 获取选择文本内容[转]
- Spring错误:java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
- Ubuntu 14.04 为 root 帐号开启 SSH 登录
- Maven项目标准目录结构
- 在App Store里混,如何写好关键词?
- ios 访问沙盒
- 提升机战斗力的xcode常用插件今天刚看到的分享给大家
- 解决Ubuntu14的风扇高速旋转问题(双显卡)
- 双语播放器关键词研究
- Eclispe快捷键