# No such file to load -- org/apache/httpcomponents/httpclient/4.5/httpclient-4.5 (LoadError)

**URL:** <https://discuss.elastic.co/t/no-such-file-to-load-org-apache-httpcomponents-httpclient-4-5-httpclient-4-5-loaderror/130042>\
**Category:** Logstash\
**Created:** [April 30, 2018, 3:44pm UTC](https://discuss.elastic.co/t/no-such-file-to-load-org-apache-httpcomponents-httpclient-4-5-httpclient-4-5-loaderror/130042 "2018-04-30T15:44:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmccuk](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dmccuk](https://discuss.elastic.co/u/dmccuk)\
**Post date:** [April 30, 2018, 3:44pm UTC](https://discuss.elastic.co/t/no-such-file-to-load-org-apache-httpcomponents-httpclient-4-5-httpclient-4-5-loaderror/130042/1 "2018-04-30T15:44:06Z")

</div>

Hi,

I'm returning to ELK after a break for a few years. I've got this error when i start logstash up and include my remote elasticsearch node in the config on a very basic setup:

```
# bin/logstash -f conf.d/inputs.conf
#######START#########

```

The error reported is:

```
you might need to reinstall the gem which depends on the missing jar or in case there is Jars.lock then resolve the jars with `lock_jars` command
    
no such file to load -- org/apache/httpcomponents/httpclient/4.5/httpclient-4.5 (LoadError)

```

Is anyone able to point me in the right direction please?

This is my logstash.conf file:

```
input {
  beats {
    port => 5044
  }
}

output {
  file {
    path => "/tmp/logs.%{+yyyy.MM.dd.HH}"
  }
  elasticsearch { hosts => ["https://elasticsearch_server:9200"] }
}

```

I have my ssl certificate to include but I'm not even getting that error yet. If I comment out the remote elasticsearch output, it works as expected and creates the file in /tmp.

Happy to supply more information and thanks for any help you can give me.

Regards  
Dennis

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [April 30, 2018, 8:42pm UTC](https://discuss.elastic.co/t/no-such-file-to-load-org-apache-httpcomponents-httpclient-4-5-httpclient-4-5-loaderror/130042/2 "2018-04-30T20:42:43Z")

</div>

To help me reproduce:

- what version of Logstash?

```auto
bin/logstash --version

```

- what version of Java?

```auto
java --version

```

- is `JAVA_HOME` set?

```auto
echo $JAVA_HOME

```

- what version of the logstash-output-elasticsearch plugin?

```auto
bin/logstash-plugin list --verbose logstash-output-elasticsearch

```

---

<div class="post-metadata">

**Author:** ![dmccuk](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@dmccuk](https://discuss.elastic.co/u/dmccuk)\
**Post date:** [May 4, 2018, 8:29am UTC](https://discuss.elastic.co/t/no-such-file-to-load-org-apache-httpcomponents-httpclient-4-5-httpclient-4-5-loaderror/130042/3 "2018-05-04T08:29:13Z")

</div>

Hi Yaauie,

I'm sorry for the delay in getting back to you. I downloaded the Tar ball (instead of using the RPM) with all the component parts and set that up on my server. It's been working fine for me now for a couple of days and I think the issue may have been that that server has no internet access.

Regards

Dennis

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 1, 2018, 8:29am UTC](https://discuss.elastic.co/t/no-such-file-to-load-org-apache-httpcomponents-httpclient-4-5-httpclient-4-5-loaderror/130042/4 "2018-06-01T08:29:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
