Since solr4, CommonsHttpSolrServer has changed into HttpSolrServer: http://wiki.apache.org/solr/Solrj#HttpSolrServer