Class Loader issues

2015-10-01 Thread Firas Khasawneh
Hi all, I am trying to load Jackson json library from the solr-5.3.1/contrib/clustering/lib directory. In solconfig.xml I have the following entry: When I start solr, I get the following warning: SolrResourceLoader No files added to classloader from lib: /dev/solr-5.3.1/contrib/clustering/lib

QueryResponse to json

2015-09-15 Thread Firas Khasawneh
Hi all, Is there a way to convert the QueryResponse from a Solrj query to Json? I am using JSONWriter to write the result as a json response in my servlet but when I convert solrDocs to an array, it converts everything to string with quotes including arrays. Example of this: It would return

RE: http client mismatch

2015-09-04 Thread Firas Khasawneh
Hi Shawn, I tried this SystemDefaultHttpClient cl = new SystemDefaultHttpClient(); HttpSolrClient solrSvr = new HttpSolrClient(url, cl); And it worked. Thanks a lot for your help. Regards, Firas -Original Message- From: Shawn Heisey [mailto:apa...@elyograg.org] Sent: Friday, September

RE: http client mismatch

2015-09-04 Thread Firas Khasawneh
Hi Shawn, Thanks for your response. I am not using http client directly. I am using SolrHttpClient which is using it so I have no control. Below is a snippet of my test code: HttpSolrClient solrSvr = new HttpSolrClient(url); SolrQuery query=new SolrQuery(); query.setQuery("xyz");

http client mismatch

2015-09-03 Thread Firas Khasawneh
Hi, I am trying to use SolrHttpClient in solrj 5.3.0 but I am getting the following execption: Caused by: java.lang.VerifyError: Bad return type Exception Details: Location: org/apache/solr/client/solrj/impl/HttpClientUtil.createClient(Lorg/apache/solr/common/params/SolrParams;)Lorg/apach