After upgrading from 4.1 to 4.2 our api to create a HttpSolrServer no longer worked. Our unit tests using the embedded solr server did not catch this issue. We did not detect the issue until runtime with deployment to jboss 7.
The errors were
java.io.FileNotFoundException: \local\java\jre\lib\security\cacerts (The system cannot find the path specified)
Failure initializing default system SSL context
In our environment we do not require security to access the solr server. To get around this error, we created the http client and set the connection manager on it and passing it to the HttpSolrServer constructor.
PoolingClientConnectionManager connManager = new PoolingClientConnectionManager();
DefaultHttpClient client = new DefaultHttpClient(connManager);
Can you please advise if this is the best way to get around this? Also, is there a way that a unit test could have found this issue?
Thank you in advance for for any help you can provide, and we think solr is awesome!