嗨,我尝试使用HttpEntity ClassNotFound异常的post方法来使用apatche 4.0.1
发布于 2010-08-03 08:35:14
您没有正确地将httpcore jar包含到类路径中。您是将其作为jar、webapp还是通过某个IDE运行的应用程序?
编辑:基于您的评论。
ClassNotFoundException: org.apache.commons.logging.LogFactory
那是你的罪魁祸首。我假设httpcore使用LogFactory,而您没有将它包含在类路径中。查找commons-logging.jar,并将其包含在类路径中。
https://stackoverflow.com/questions/3392783
复制相似问题