# Error to integrate elastic high rest client on Weblogic

**URL:** <https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323>\
**Category:** Elasticsearch\
**Created:** [May 19, 2020, 1:10pm UTC](https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323 "2020-05-19T13:10:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![famele3](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@famele3](https://discuss.elastic.co/u/famele3)\
**Post date:** [May 19, 2020, 1:10pm UTC](https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323/1 "2020-05-19T13:10:55Z")

</div>

Hello all,  
I should integrate the elastic search high rest client on my java web app.

I put this dependecies on pom :

```
 	 	<dependency>
			<groupId>org.elasticsearch.client</groupId>
			<artifactId>elasticsearch-rest-client</artifactId>
			<version>6.4.3</version>
		</dependency>
		
		<dependency>
			<groupId>org.elasticsearch.client</groupId>
			<artifactId>elasticsearch-rest-high-level-client</artifactId>
			<version>6.4.3</version>
		</dependency>   

```

My Class is this to connection on my instance of Elastic :

```
public class Client {
	
	      public static void main(String[] args) throws IOException {
    	        
    	 RestHighLevelClient aesClient = aesClient();
    	  }
    	  public static RestHighLevelClient aesClient() {
    	    	RestHighLevelClient client = new RestHighLevelClient(
    	    	        RestClient.builder(
    	    	                new HttpHost("xx.xx.xx.xxx", 9200, "http"),
    	    	                new HttpHost("xx.xx.xx.xxx", 9201, "http")));
    	        return client;
    	    }

```

But i have this error when i try to upload the package on Weblogic web server :  
Module named 'm2mServer-ear' failed to deploy. See Error Log view for more detail.  
weblogic.application.ModuleException: null  
null  
Exception received from deployment driver. See Error Log view for more detail.

**WebLogic Version** is : 12.1.3  
**Java version** 1.8

---

<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 19, 2020, 1:37pm UTC](https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323/2 "2020-05-19T13:37:26Z")

</div>

> [@famele3](#):
>
> See Error Log view for more detail.  
> weblogic.application.ModuleException: null  
> null  
> Exception received from deployment driver. See Error Log view for more detail.

There is nothing we can tell with that.

What is the output of `mvn dependency:tree` if you are using Maven?

---

<div class="post-metadata">

**Author:** ![famele3](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@famele3](https://discuss.elastic.co/u/famele3)\
**Post date:** [May 19, 2020, 1:47pm UTC](https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323/3 "2020-05-19T13:47:10Z")

</div>

**This is my Maven Dependecies :**

 ![maven_tree](https://us1.discourse-cdn.com/elastic/original/3X/8/6/86103feadbbcd37594cea8c4c1f205a5075d321b.png)

I don't have any error when a compile the package , the error is runTime :

 ![run_time_error](https://us1.discourse-cdn.com/elastic/original/3X/e/1/e14220b1665bdf7cb314466a9f8e0b5bfdcd62a3.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 19, 2020, 2:14pm UTC](https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323/4 "2020-05-19T14:14:47Z")

</div>

There's nothing we can say from that I think.  
You should may be look at the weblogic logs?

---

<div class="post-metadata">

**Author:** ![famele3](https://avatars.discourse-cdn.com/v4/letter/f/43a26b/32.png) [@famele3](https://discuss.elastic.co/u/famele3)\
**Post date:** [May 19, 2020, 2:23pm UTC](https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323/5 "2020-05-19T14:23:14Z")

</div>

In weblogic log this is the only error i can see :

```
ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1589891835759> <BEA-149265> <Failure occurred in the execution of deployment request with ID "587319399982400" for task "0". Error is: "weblogic.application.ModuleException: null
null"
weblogic.application.ModuleException: null
null
at weblogic.servlet.internal.WebAppModule.createModuleException(WebAppModule.java:1824)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:270)
at weblogic.servlet.internal.WebAppModule.init(WebAppModule.java:682)

  at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
at com.bea.objectweb.asm.ClassReader.<init>(Unknown Source)
at weblogic.application.utils.annotation.ClassInfoImpl.<init>(ClassInfoImpl.java:41)
at weblogic.application.utils.annotation.ClassfinderClassInfos.polulateOneClassInfo(ClassfinderClassInfos.java:240)

```

If i try to remove the elastic dependecies from the pom , it works successfully

```
    	<dependency>
			<groupId>org.elasticsearch.client</groupId>
			<artifactId>elasticsearch-rest-high-level-client</artifactId>
			<version>6.4.3</version>
		</dependency>    

```

Could be the problem the weblogic version ? or I need to insert any configuration for the elastic library in weblogic.xml file ?

---

<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 19, 2020, 2:30pm UTC](https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323/6 "2020-05-19T14:30:15Z")

</div>

May be a conflict between a library provided by WebLo and the ones provided within you project.

At the very least, I can say that nothing from the logs is coming from Elasticsearch.

I found this while searching on Google. That might help? [https://stackoverflow.com/questions/37452023/java-lang-nosuchmethoderror-during-elastic-search-start](https://stackoverflow.com/questions/37452023/java-lang-nosuchmethoderror-during-elastic-search-start)

---

<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 16, 2020, 2:30pm UTC](https://discuss.elastic.co/t/error-to-integrate-elastic-high-rest-client-on-weblogic/233323/7 "2020-06-16T14:30:20Z")

</div>

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