The cause of this error seems not to be a wsl problem but instead a bug with the log4j lib version that you are using. You have the same error that is mentioned in this github post Upgrade your log4j version from 1.2.16 -> 1.2.17 should fix your problem.