Hi,
I have downloaded "solr-2008-07-30" version of solr nightly, are you talking
different version of HttpClient.
Thanks & Regards,
Ranjeet
----- Original Message -----
From: "Erik Hatcher" <[EMAIL PROTECTED]>
To: <solr-user@lucene.apache.org>
Sent: Monday, August 04, 2008 10:05 PM
Subject: Re: Initialising of CommonsHttpSolrServer in Spring framwork
Looks to me like you have a conflict with the version of HttpClient in
that exception, likely not using the same version that SolrJ requires.
Erik
On Aug 4, 2008, at 12:07 PM, Ranjeet wrote:
Hi Tomislav,
I have user the same way that you suggest, but I am worndering that its
not working , exception is attached in this mail. pls suggest me what to
do further.
Thanks & Regards,
Ranjeet
----- Original Message ----- From: "Tomislav Poljak" <[EMAIL PROTECTED]
>
To: <solr-user@lucene.apache.org>
Sent: Monday, August 04, 2008 4:31 PM
Subject: Re: Initialising of CommonsHttpSolrServer in Spring framwork
Hi Ranjeet,
try this in your Spring config:
<bean id="solrServer"
class="org.apache.solr.client.solrj.impl.CommonsHttpSolrServer">
<constructor-arg><value>http://solr_url:8080/</value></constructor- arg>
<property name="connectionTimeout" value="100"/>
<property name="defaultMaxConnectionsPerHost" value="100"/>
<property name="maxTotalConnections" value="100"/>
</bean>
and inject it to you service like this:
<bean id="someService" class="service.SomeServiceImpl">
<property name="server" ref="solrServer"/>
</bean>
and you have to have a setter in SomeService for the prop. server
(solrServer), off course.
Hope this helps,
Tomislav
2008/8/4 Ranjeet <[EMAIL PROTECTED]>
Hi,
I am using Solr 1.3 and Solrj as a Java Client. I am Integarating
Solrj in
Spring framwork, I am facing a problem, Spring framework is not
inializing
CommonsHttpSolrServer class, how can I define this class to get the
instance of SolrServer to invoke furthur method on this.
Thanks & Regards,
Ranjeet Jha
<exception.txt>