The experts at Nanitor have created a program that detects and removes the JndiLookup class (CVE-2021–44228) from the classpath (war/jar/ear files).
Nanitor is not affected by the Log4j vulnerability.