SolrJ is throwing NoHttpResponseException when trying to instantiate HttpSolrServer. Anyone knows why?
In the code I do:
SolrServer server = new HttpSolrServer ("http://localhost:8983/solr/"); // or some other url.
and it throws:
javax.servlet.ServletException: java.lang.NoClassDefFoundError: org/apache/http/NoHttpResponseException
I'm using Solr and SolrJ 4.1.0
I dont know if your problem was the same as mine but i thought that i'm getting the same exception until i noticed that i'm having the exception noClassFound :NoHttpResponseException
and just by adding this package httpclient-4.1.3
the issue was solved.
hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With