美文网首页
linux 搭建solr集群以及使用solrj遇到的问题和解决方

linux 搭建solr集群以及使用solrj遇到的问题和解决方

作者: gabaman | 来源:发表于2016-09-09 21:01 被阅读525次

java.lang.NoClassDefFoundError: org/apache/http/message/TokenParser

问题原因:solr工程中缺少jar包

解决方案:maven工程在pom.xml添加依赖 其他工程或直接添加jar包(注意版本匹配solrj版本)

org.apache.httpcomponents

httpcore

4.3

org.apache.httpcomponents

httpmime

4.3.1

org.apache.httpcomponents

httpclient-cache

4.3.1

org.apache.httpcomponents

httpclient

4.3.1


相关文章

网友评论

      本文标题:linux 搭建solr集群以及使用solrj遇到的问题和解决方

      本文链接:https://www.haomeiwen.com/subject/vnxyettx.html