it is actually not so easy to understand this mail, let me try anyway … Which version of SolrJ are you using ? With Solr 5.x the SolrServer actually became SolrClient ( which makes more sense) .
This would actually produce a simple compilation exception so i guess it is not the problem… But i can't do more with this strange details… If you give more info, maybe we can try to help! Cheers 2015-07-07 7:05 GMT+01:00 Saravanakumar Ramasamy <r...@zoniac.com>: > Hi > > > > Before upgrade version > > =================== > > Tomcat : 6 > > Jdk 1.6 > > Solr 3.1 > > Axis2 1.6.2 > > > > We are using like > > Server > > ====== > > import org.apache.solr.client.solrj.impl.CommonsHttpSolrServer; > > CommonsHttpSolrServer solrServer = new > CommonsHttpSolrServer(solrWebServer); > > > > Connection > > ========== > > import org.apache.solr.client.solrj.SolrQuery; > > import org.apache.solr.client.solrj.response.QueryResponse; > > > > SolrQuery query = new SolrQuery(); > > query.setQuery(solrMainQuery.toString()); > > QueryResponse qr = solrServer.query(query); > > > > Both code is working well. > > > > After upgrade version > > ================== > > Tomcat : 8 > > Jdk 1.8 > > Solr 5.1 > > Axis2 1.6.2 > > > > > > Server > > ====== > > import org.apache.solr.client.solrj.impl.HttpSolrClient; > > HttpSolrClient solrServer = new HttpSolrClient (solrWebServer); > > > > Connection > > ========== > > import org.apache.solr.client.solrj.SolrQuery; > > import org.apache.solr.client.solrj.response.QueryResponse; > > > > SolrQuery query = new SolrQuery(); > > query.setQuery(solrMainQuery.toString()); > > QueryResponse qr = solrServer.query(query); > > > > the query not kid to solr server. once I command yellow > mark package. The query kid to server. But throw exception. > > I am using 3 (root,solr,axis2) appication in my tomcat, > > Root to solr à Same code working fine > > Axis2 to solr à Same code not working > > > > Where I go wrong. If any aternaive package or I missed dependency libraries > > > > > > > > With Regards, > > RSK > > > > -- -------------------------- Benedetti Alessandro Visiting card : http://about.me/alessandro_benedetti "Tyger, tyger burning bright In the forests of the night, What immortal hand or eye Could frame thy fearful symmetry?" William Blake - Songs of Experience -1794 England