社区
Apache
帖子详情
已经在meaven中添加了commons-logging包,但还是报找不到org/apache/commons/logging/LogFactory
stellaYdc
2016-07-31 01:04:48
spring boot的项目 已经在meaven中添加了commons-logging的jar包,但还是报Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
...全文
1336
1
打赏
收藏
已经在meaven中添加了commons-logging包,但还是报找不到org/apache/commons/logging/LogFactory
spring boot的项目 已经在meaven中添加了commons-logging的jar包,但还是报Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
1 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
weixin_41850988
2018-10-23
打赏
举报
回复
maven本地库里的jar包不对,删除本地库原来的jar包重新下载
commons
-
log
ging
-1.2
commons
-
log
ging
-1.2:java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/
log
ging
/
Log
Factory
解决方法
commons
-
log
ging
如果遇到错误java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/
log
ging
/
Log
Factory
就下载这个
包
。
commons
-
log
ging
-1.1.2.jar
java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/
log
ging
/
Log
Factory
这个错误的发生,基本上都是因为缺少一个jar
包
引起的,把该jar
包
加入你的build path 即可。
json所有的jar
包
下载
json-lib-2.2.3-jdk15.jar
commons
-beanutils-1.7.0.jar
commons
-httpclient-3.1.jar
commons
-lang-2.3.jar
commons
-
log
ging
-1.1.1.jar
commons
-collections-3.2.1.jar ezmorph-1.0.3.jar 如果不关联这些
包
,则会出现以下错误:java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/collections/map/ListOrderedMap java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/beanutils/DynaBean java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/codec/DecoderException java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/lang/exception/NestableRuntimeException java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/
log
ging
/
Log
Factory
使用json所要用到的jar
包
json-lib-2.2.3-jdk15.jar
commons
-beanutils-1.7.0.jar
commons
-httpclient-3.1.jar
commons
-lang-2.3.jar
commons
-
log
ging
-1.1.1.jar
commons
-collections-3.2.1.jar ezmorph-1.0.3.jar 如果不关联这些
包
,则会出现以下错误: java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/collections/map/ListOrderedMap java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/beanutils/DynaBean java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/codec/DecoderException java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/lang/exception/NestableRuntimeException java.lang.NoClassDefFoundError:
org
/
apache
/
commons
/
log
ging
/
Log
Factory
Apache
24,923
社区成员
16,548
社区内容
发帖
与我相关
我的任务
Apache
Web 开发 Apache
复制链接
扫一扫
分享
社区描述
Web 开发 Apache
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章