`

Exception in thread "main" java.lang.NoClassDefFoundError:

    博客分类:
  • bug
 
阅读更多
1:rejected bean name no url paths identified
http://blog.csdn.net/prince2270/article/details/5894456
http://blog.csdn.net/prince2270/article/details/6262508

2:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/GenericObjectPoolConfig
at com.travelsky.redis.AreaTest.writeData(AreaTest.java:23)
at com.travelsky.redis.AreaTest.main(AreaTest.java:13)
错误原因:缺少jar包
解决方式 :增加commons-pool-2.2.jar
3:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
at com.travelsky.redis.RedisPool.<clinit>(RedisPool.java:12)
at com.travelsky.redis.AreaTest.writeData(AreaTest.java:23)
at com.travelsky.redis.AreaTest.main(AreaTest.java:13)

错误原因:缺少jar包
解决方式 :增加log4j-1.2.8.jar
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics