# Elastic search 6.5.4 Caused by:ClassNotFoundException: org.elasticsearch.xpack.core.XPackClientPlugin

**URL:** <https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332>\
**Category:** Elasticsearch\
**Created:** [April 29, 2020, 8:22am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332 "2020-04-29T08:22:42Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [April 29, 2020, 8:22am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/1 "2020-04-29T08:22:42Z")

</div>

I am getting ClassNotFoundException: org.elasticsearch.xpack.core.XPackClientPlugin with elastic search 6.5.4 version.

pls find the logs which i am getting .  
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transportClient' defined in class path resource [com/crmanalytics/main/CRMRestConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.transport.TransportClient]: Factory method 'transportClient' threw exception; nested exception is java.lang.NoClassDefFoundError: org/elasticsearch/xpack/core/XPackClientPlugin  
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:625) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:455) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1288) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1127) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:538) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1239) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1166) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:593) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
... 50 common frames omitted  
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.transport.TransportClient]: Factory method 'transportClient' threw exception; nested exception is java.lang.NoClassDefFoundError: org/elasticsearch/xpack/core/XPackClientPlugin  
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:620) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
... 63 common frames omitted  
Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/xpack/core/XPackClientPlugin  
at org.elasticsearch.xpack.client.PreBuiltXPackTransportClient.(PreBuiltXPackTransportClient.java:47) ~[x-pack-transport-6.5.4.jar:6.5.4]  
at org.elasticsearch.xpack.client.PreBuiltXPackTransportClient.(PreBuiltXPackTransportClient.java:42) ~[x-pack-transport-6.5.4.jar:6.5.4]  
at org.elasticsearch.xpack.client.PreBuiltXPackTransportClient.(PreBuiltXPackTransportClient.java:38) ~[x-pack-transport-6.5.4.jar:6.5.4]  
at com.crmanalytics.main.CRMRestConfig.transportClient(CRMRestConfig.java:68) ~[classes/:na]  
at com.crmanalytics.main.CRMRestConfig$$EnhancerBySpringCGLIB$$2e82726f.CGLIB$transportClient$8() ~[classes/:na]  
at com.crmanalytics.main.CRMRestConfig$$EnhancerBySpringCGLIB$$2e82726f$$FastClassBySpringCGLIB$$2b5b9379.invoke() ~[classes/:na]  
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
at com.crmanalytics.main.CRMRestConfig$$EnhancerBySpringCGLIB$$2e82726f.transportClient() ~[classes/:na]  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0\_221]  
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0\_221]  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0\_221]  
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0\_221]  
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.2.RELEASE.jar:5.1.2.RELEASE]  
... 64 common frames omitted  
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.xpack.core.XPackClientPlugin  
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) ~[na:1.8.0\_221]  
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0\_221]  
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[na:1.8.0\_221]  
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0\_221]  
... 78 common frames omitted

---

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [April 29, 2020, 8:28am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/2 "2020-04-29T08:28:57Z")

</div>

```
i have added the below dependencies , and in java while creating instance getting this class not found exception.
    <dependency>
        		<groupId>org.elasticsearch.client</groupId>
        		<artifactId>x-pack-transport</artifactId>
       			<version>6.5.4</version>
    		</dependency> 		
    		<dependency>
                <groupId>com.unboundid</groupId>
                <artifactId>unboundid-ldapsdk</artifactId>
                </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcprov-jdk15on</artifactId>
                <version>1.58</version>
            </dependency>
            <dependency>
                <groupId>org.bouncycastle</groupId>
                <artifactId>bcpkix-jdk15on</artifactId>
                <version>1.58</version>
            </dependency> 

```

in Java:  
client = new PreBuiltXPackTransportClient(settings);

not able to create Transportclient. Pls help me to fix it

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 29, 2020, 8:36am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/3 "2020-04-29T08:36:29Z")

</div>

Please format your code, logs or configuration files using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

This is the icon to use if you are not using markdown format:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/e/7e6e239431ec2d71cbf1beef741f2e93e7cc762c.jpg)

There's a live preview panel for exactly this reasons.

Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.  
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.  
Please update your post.

---

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [April 29, 2020, 9:02am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/4 "2020-04-29T09:02:25Z")

</div>

I am working on the Springboot 2.1.0 version. I have formatted the above post.and here the version of unboundid-ldapsdk is 3.2.0.

Please help me to fix.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 29, 2020, 9:42am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/5 "2020-04-29T09:42:58Z")

</div>

Could you update the first post as well?

Don't format **all** but just the code and logs please.

---

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [April 29, 2020, 12:27pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/6 "2020-04-29T12:27:44Z")

</div>

Yes updated David

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 29, 2020, 12:43pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/7 "2020-04-29T12:43:05Z")

</div>

It's not.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/7/870aec1f5ca878196d76a636311781f7f57ec19c.png)

---

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [April 29, 2020, 1:17pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/8 "2020-04-29T13:17:20Z")

</div>

with 6.3.2 version Its working, but 6.5.4 version is not working .

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 29, 2020, 3:34pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/9 "2020-04-29T15:34:34Z")

</div>

What is the output of:

```auto
mvn dependency:tree

```

---

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [May 6, 2020, 7:47am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/10 "2020-05-06T07:47:30Z")

</div>

I have downloaded these jars of 6.5.4 version x-pack-transport , x-pack-core .  
I tried executing Its working in my local.But while downloading from our maven repository Jars are not downloading.Getting the Unauthorized Error.  
can you please clarify me for 6.5.4 version are we required the License ? how we can resolve.

```
Failed to collect dependencies at org.elasticsearch.client:x-pack-transport:jar:6.5.4 -> 
	org.elasticsearch.plugin:x-pack-core:jar:6.5.4: Failed to read artifact descriptor for 
	org.elasticsearch.plugin:x-pack-core:jar:6.5.4: Could not transfer artifact org.elasticsearch.plugin:
	x-pack-core:pom:6.5.4
Access denied , Error code 401, Unauthorized -> [Help 1]
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 6, 2020, 8:23am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/11 "2020-05-06T08:23:15Z")

</div>

Can you answer my previous question?

---

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [May 6, 2020, 2:23pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/12 "2020-05-06T14:23:37Z")

</div>

I manually downloaded the jars and added the dependency in pom.xml.  
Both jars doesn't have any transitive dependency . while running  
mvn dependency:tree for both jars ,I am getting the below .

```
x-pack-transport :6.5.4 [system]
core :6.5.4 [system]
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 6, 2020, 2:53pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/13 "2020-05-06T14:53:19Z")

</div>

Could you share **the full output** of the command please?  
And may be share the full `pom.xml`?

---

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [May 6, 2020, 4:37pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/14 "2020-05-06T16:37:16Z")

</div>

![xpack](https://us1.discourse-cdn.com/elastic/original/3X/6/e/6e57246c01c53370f600542efd118e866177041b.png)

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 7, 2020, 1:40am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/15 "2020-05-07T01:40:31Z")

</div>

Could you run in the command line:

```
mvn dependency:tree

```

And share the **full output** here please?

---

<div class="post-metadata">

**Author:** ![rthangaraj5](https://avatars.discourse-cdn.com/v4/letter/r/c0e974/32.png) [@rthangaraj5](https://discuss.elastic.co/u/rthangaraj5)\
**Post date:** [May 8, 2020, 6:33am UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/16 "2020-05-08T06:33:18Z")

</div>

while running I am getting the "mvn is not recognized as an internal or external command,operable program or batch file." not able to install maven.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 11, 2020, 5:23pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/17 "2020-05-11T17:23:12Z")

</div>

Pretty sure you can run it from your IDE.

---

<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 8, 2020, 5:35pm UTC](https://discuss.elastic.co/t/elastic-search-6-5-4-caused-by-org-elasticsearch-xpack-core-xpackclientplugin/230332/18 "2020-06-08T17:35:02Z")

</div>

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