I use Elastic 5.0.2 (via maven) in a web app (running on Tomcat 8.5).
Also I use Log4J 2.7.
I use the java client
new PreBuiltTransportClient(settings).addTransportAddress(inetSocketTransportAddress);
If the connection fail, I get this error
java.lang.NoSuchMethodError: org.apache.logging.log4j.core.util.Loader.loadClass(Ljava/lang/String;)Ljava/lang/Class;
at org.apache.logging.log4j.core.impl.ThrowableProxy.loadClass(ThrowableProxy.java:497)
The ThrowableProxy copy from Elastic is not the same as the one provided by Log4J 2.7
I also noticed taht in Elastic github repo ThrowableProxy is not present.
Only in the maven distribution.
BTW, It's a very bad practice to maintain in Elastic source code a copy of the Log4J ThrowableProxy class.
I know that some improvements have been done concerning the logging in Elastic.
I hope ThrowableProxy will soon disappear !
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.