# Help! I want to use high level client with weblogic, but deployment is failed

**URL:** <https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635>\
**Category:** Elasticsearch\
**Created:** [June 20, 2019, 9:32am UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635 "2019-06-20T09:32:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![CodeSpeaker](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@CodeSpeaker](https://discuss.elastic.co/u/CodeSpeaker)\
**Post date:** [June 20, 2019, 9:32am UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635/1 "2019-06-20T09:32:56Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/a/f/afd2c4b526ecf588dcc46d1038cf41f47953ac0e.jpeg) ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/a/9afda45f5b65d81600cabca6e82c365134bc6693.jpeg) ![image](https://us1.discourse-cdn.com/elastic/original/3X/0/9/0901e5d84611bf9b58b860bfaf657fd6f224d6ff.jpeg)

These are weblogic’s error logs.  
I deployed the same application on tomcat, and it ran successfully. I has played with this error for almost a week. I can’t wait to kill this bug! Please help me!  
Thanks!

---

<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:** [June 20, 2019, 10:01am UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635/2 "2019-06-20T10:01:14Z")

</div>

Welcome!

Please don't post images of text as they are hardly readable and not searchable.

Instead paste the text and format it with `</>` icon. Check the preview window.

I can't tell about what is happening because in the stacktrace you pasted there is not a single line referencing elasticsearch code.  
A wild guess is that something that elasticsearch client is adding (a JAR) is conflicting with Weblo. Jackson? HTTP layer? Other? I can't really tell.  
What you can try is to simply remove the HLClient dependency and deploy again. If you have the same problem, then that's not coming from ES dep.  
If you do have the same problem, just try to add the low level client for now and see if this is conflicting.

---

<div class="post-metadata">

**Author:** ![CodeSpeaker](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@CodeSpeaker](https://discuss.elastic.co/u/CodeSpeaker)\
**Post date:** [June 20, 2019, 5:14pm UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635/3 "2019-06-20T17:14:33Z")

</div>

Thanks for your reply!  
I had tried to remove some of the jars. I found out two jar is the conflict preventing the deployment.  
They are  
elasticsearch-core7.1.1.jar & log4j-api.jar(I forget the version).

My application can be deployed successfully without that two jars, but failed with any one of them. Of course, I can’t use ES without them.

Would you please deploy a demo to weblogic? Then you could decide whether to deal with it or to suggest me to replace weblogic.

Please!

---

<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:** [June 20, 2019, 5:30pm UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635/4 "2019-06-20T17:30:15Z")

</div>

> [@CodeSpeaker](#):
>
> Would you please deploy a demo to weblogic?

I'm afraid I can't.  
But if you'd like to replace Weblo by anything else, just try.

That said, did you try with the Low Level client only?

---

<div class="post-metadata">

**Author:** ![CodeSpeaker](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@CodeSpeaker](https://discuss.elastic.co/u/CodeSpeaker)\
**Post date:** [June 21, 2019, 1:13am UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635/5 "2019-06-21T01:13:49Z")

</div>

I think low level may be OK, but I must rewrite my code based on high level.😂

Thanks anyway!

---

<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:** [June 21, 2019, 3:43am UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635/6 "2019-06-21T03:43:46Z")

</div>

I did not mean that you must rewrite. I just wanted to check it.  
There might be another solution which consists of shading the conflicting dependencies. And I just believe that the logging one might be the problem here.

Could you try to shade it? I think I saw somewhere that we are going to shade some libs in the near future as well. (Didn't check that so I'm unsure)

---

<div class="post-metadata">

**Author:** ![CodeSpeaker](https://avatars.discourse-cdn.com/v4/letter/c/e274bd/32.png) [@CodeSpeaker](https://discuss.elastic.co/u/CodeSpeaker)\
**Post date:** [June 21, 2019, 6:16am UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635/7 "2019-06-21T06:16:51Z")

</div>

As I say, I had tried without  
**elasticsearch-core-7.1.1.jar**  
and  
**log4j-api-2.11.1.jar**.  
And deployment is OK.  
So I think if I just use low level api, it would be OK, of course.  
But if I try, it need time. If I would have tried, I will tell you the result here.

---

<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:** [July 19, 2019, 6:17am UTC](https://discuss.elastic.co/t/help-i-want-to-use-high-level-client-with-weblogic-but-deployment-is-failed/186635/8 "2019-07-19T06:17:03Z")

</div>

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