ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
solution:
1. download log4 .jar file
https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core/2.16.0
2. copy log4j-api-2.18.0.jar and log4j-core-2.18.0.jar to lib folder of Java project, right click - build path - add to build path
3. create log4j2.xml file in src,content as below:
<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
<Appenders>
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
</Console>
</Appenders>
<Loggers>
<Logger name="com.opensymphony.xwork2" level="debug"/>
<Logger name="org.apache.struts2" level="debug"/>
<Root level="warn">
<AppenderRef ref="STDOUT"/>
</Root>
</Loggers>
</Configuration>
4. run java application again, the error will not show again.