elasticsearch-java
elasticsearch-java copied to clipboard
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
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?
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?
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!