# Unable to connect to Elasticsearch with X-Pack enabled

**URL:** https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-with-x-pack-enabled/137023
**Category:** Elasticsearch
**Created:** [June 22, 2018, 12:50pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-with-x-pack-enabled/137023 "2018-06-22T12:50:02Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![hitesh-inbetween](https://avatars.discourse-cdn.com/v4/letter/h/51bf81/32.png) [@hitesh-inbetween](https://discuss.elastic.co/u/hitesh-inbetween)
#### Post date: [June 22, 2018, 2:18pm UTC](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-with-x-pack-enabled/137023/3 "2018-06-22T14:18:32Z")

</div>

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.  
Exception in thread "main" java.lang.NoSuchMethodError: org.elasticsearch.common.settings.Settings$Builder.put([Ljava/lang/Object;)Lorg/elasticsearch/common/settings/Settings$Builder;

This is the message I am getting.

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-connect-to-elasticsearch-with-x-pack-enabled/137023)._
