添加es maven报错 Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Logger at org.elasticsearch.common.logging.Loggers.getLogger(Loggers.java:105) ~[elasticsearch-5.0.1.jar:5.0.1] at org.elasticsearch.common.logging.Loggers.getLogger(Loggers.java:72) ~[elasticsearch-5.0.1.jar:5.0.1] at org.elasticsearch.common.component.AbstractComponent.<init>(AbstractComponent.java:37) ~[elasticsearch-5.0.1.jar:5.0.1] at org.elasticsearch.plugins.PluginsService.<init>(PluginsService.java:110) ~[elasticsearch-5.0.1.jar:5.0.1] at org.elasticsearch.client.transport.TransportClient.newPluginService(TransportClient.java:81) ~[elasticsearch-5.0.1.jar:5.0.1] at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:106) ~[elasticsearch-5.0.1.jar:5.0.1] at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:228) ~[elasticsearch-5.0.1.jar:5.0.1] at org.e
添加es java.lang.NoClassDefFoundError: org/apache/logging/log4j/Logger
最新推荐文章于 2024-09-08 16:20:45 发布
本文介绍了在Java应用程序运行时遇到`java.lang.NoClassDefFoundError: org/apache/logging/log4j/Logger`错误的常见原因和解决方案。该错误通常发生在缺少Log4j库依赖或者依赖版本不匹配的情况下。解决方法包括检查并确保Maven或Gradle构建文件中正确添加了Log4j的依赖,并且版本与项目其他组件兼容。此外,清理并重新构建项目,或者检查类路径设置也可能有助于解决问题。
摘要由CSDN通过智能技术生成