
Apply class remove process from ear/war/jar/zip archive, see https://logging.apache.org/log4j/2.x/
The current program remove the class "org/apache/logging/log4j/core/lookup/JndiLookup.class" from your zip, jar, war, ear archive.
Execute the program before starting your server