I've upgraded my log4j from 1.X to 2.3. The logging works fine. However, I'm using ESAPI and it is giving me errors now.
This is my ESAPI import statement:
import org.owasp.esapi.ESAPI;
This is how I'm using ESAPI:
ESAPI.encoder().encodeForHTML(somevalue)
The exception I'm receiving is:
exception org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException Encoder class (org.owasp.esapi.reference.DefaultEncoder) CTOR threw exception.
org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException Encoder class (org.owasp.esapi.reference.DefaultEncoder) CTOR threw exception.
at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129) ~[esapi-2.1.0.jar:2.1.0]
at org.owasp.esapi.ESAPI.encoder(ESAPI.java:99) ~[esapi-2.1.0.jar:2.1.0]
I'm using Eclipse and I'm using log4j-api-2.3.jar and log4j-core-2.3.jar