lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saravanakumar Ramasamy" <...@zoniac.com>
Subject solr5 not woring in axis2
Date Tue, 07 Jul 2015 06:05:10 GMT
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

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message