You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Webster Homer <we...@sial.com> on 2016/06/22 19:36:23 UTC
Class Not found: CloseableHttpClient
I have an application that we wrote to support solr cloud collections. It
is a rest service that uses solrj. I am in the process of upgrading it to
use 6.1 Solr
The application builds with maven.
I get the following error:
Caused by: java.lang.NoClassDefFoundError:
org/apache/http/impl/client/CloseableHttpClient
at
org.apache.solr.client.solrj.impl.CloudSolrClient.<init>(CloudSolrClient.java:202)
[solr-solrj-6.1.0.jar:6.1.0 4726c5b2d2efa9ba160b608d46a977d0a6b83f94 -
jpountz - 2016-06-13 09:46:59]
Apparently the GAV org.apache.solr:solr-solrj:6.1.0 is no longer
sufficient
This built and ran with Solr 4.10.4 but a lot has changed.
So what do I need to add to make this work?
--
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
you must not copy this message or attachment or disclose the contents to
any other person. If you have received this transmission in error, please
notify the sender immediately and delete the message and any attachment
from your system. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not accept liability for any omissions or errors in this
message which may arise as a result of E-Mail-transmission or for damages
resulting from any unauthorized changes of the content of this message and
any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not guarantee that this message is free of viruses and does
not accept liability for any damages caused by any virus transmitted
therewith.
Click http://www.merckgroup.com/disclaimer to access the German, French,
Spanish and Portuguese versions of this disclaimer.
Re: Class Not found: CloseableHttpClient
Posted by Webster Homer <we...@sial.com>.
Never mind, this was a dependency issue between Solr and JAX-RS. Managed
the dependency to 4.4.1 fixed it
On Wed, Jun 22, 2016 at 2:44 PM, Webster Homer <we...@sial.com>
wrote:
> I tried adding the solr-core dependency but that caused the app to fail to
> deploy entirely.
>
> On Wed, Jun 22, 2016 at 2:36 PM, Webster Homer <we...@sial.com>
> wrote:
>
>> I have an application that we wrote to support solr cloud collections. It
>> is a rest service that uses solrj. I am in the process of upgrading it to
>> use 6.1 Solr
>>
>> The application builds with maven.
>>
>> I get the following error:
>> Caused by: java.lang.NoClassDefFoundError:
>> org/apache/http/impl/client/CloseableHttpClient
>> at
>> org.apache.solr.client.solrj.impl.CloudSolrClient.<init>(CloudSolrClient.java:202)
>> [solr-solrj-6.1.0.jar:6.1.0 4726c5b2d2efa9ba160b608d46a977d0a6b83f94 -
>> jpountz - 2016-06-13 09:46:59]
>>
>>
>> Apparently the GAV org.apache.solr:solr-solrj:6.1.0 is no longer
>> sufficient
>>
>> This built and ran with Solr 4.10.4 but a lot has changed.
>>
>> So what do I need to add to make this work?
>>
>
>
--
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
you must not copy this message or attachment or disclose the contents to
any other person. If you have received this transmission in error, please
notify the sender immediately and delete the message and any attachment
from your system. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not accept liability for any omissions or errors in this
message which may arise as a result of E-Mail-transmission or for damages
resulting from any unauthorized changes of the content of this message and
any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not guarantee that this message is free of viruses and does
not accept liability for any damages caused by any virus transmitted
therewith.
Click http://www.merckgroup.com/disclaimer to access the German, French,
Spanish and Portuguese versions of this disclaimer.
Re: Class Not found: CloseableHttpClient
Posted by Webster Homer <we...@sial.com>.
I tried adding the solr-core dependency but that caused the app to fail to
deploy entirely.
On Wed, Jun 22, 2016 at 2:36 PM, Webster Homer <we...@sial.com>
wrote:
> I have an application that we wrote to support solr cloud collections. It
> is a rest service that uses solrj. I am in the process of upgrading it to
> use 6.1 Solr
>
> The application builds with maven.
>
> I get the following error:
> Caused by: java.lang.NoClassDefFoundError:
> org/apache/http/impl/client/CloseableHttpClient
> at
> org.apache.solr.client.solrj.impl.CloudSolrClient.<init>(CloudSolrClient.java:202)
> [solr-solrj-6.1.0.jar:6.1.0 4726c5b2d2efa9ba160b608d46a977d0a6b83f94 -
> jpountz - 2016-06-13 09:46:59]
>
>
> Apparently the GAV org.apache.solr:solr-solrj:6.1.0 is no longer
> sufficient
>
> This built and ran with Solr 4.10.4 but a lot has changed.
>
> So what do I need to add to make this work?
>
--
This message and any attachment are confidential and may be privileged or
otherwise protected from disclosure. If you are not the intended recipient,
you must not copy this message or attachment or disclose the contents to
any other person. If you have received this transmission in error, please
notify the sender immediately and delete the message and any attachment
from your system. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not accept liability for any omissions or errors in this
message which may arise as a result of E-Mail-transmission or for damages
resulting from any unauthorized changes of the content of this message and
any attachment thereto. Merck KGaA, Darmstadt, Germany and any of its
subsidiaries do not guarantee that this message is free of viruses and does
not accept liability for any damages caused by any virus transmitted
therewith.
Click http://www.merckgroup.com/disclaimer to access the German, French,
Spanish and Portuguese versions of this disclaimer.