elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Open LeoLuo21 opened this issue 1 year ago • 1 comments

Java API client version

8.3.2

Java version

11

Elasticsearch Version

8.3.1

Problem description

When creating ElasticsearchClient, There is something wrong. The Exception is below: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory Do i need to import extra dependency of apache-commons-logging?

LeoLuo21 avatar Jul 09 '22 10:07 LeoLuo21

You should not need to, as commons logging should be imported by transitive dependencies via elasticsearch-rest-client. Maybe you have some specific version or dependency overrides in your build definition?

swallez avatar Jul 13 '22 15:07 swallez

Unfortunately we cannot move on with reproducing without more information, so I'm closing this for now, feel free to comment if the issue persists!

l-trotta avatar Feb 21 '24 11:02 l-trotta