<div dir="ltr"><div>We have migrated from IdP 2.4.1 to 3.1.1, I could see there are lot of library changes from 2.4.1 to 3.1.1 in the Idp folder. I found one library(esapi-2.1.jar) which was there in 2.4.1 is not there in the 3.1.1. </div><div>        Since we used one of the API("ESAPI.encode()") from "esapi-2.1.jar" to encode the url, we have placed the esapi-2.1.jar in the "IDP" folder(idP-3.1.1).</div><div><br></div><div>At IdP 2.4 -We were encoding the url at login.JSP as below:</div><div><b><font color="#0000ff">ESAPI.encoder().encodeForHTMLAttribute(request.getParameter("actionUrl"))</font></b><br></div><div><span style="color:rgb(0,0,0)"><br></span></div><div><span style="color:rgb(0,0,0)">However ,At IdP 3.1.1 while encoding the same 'actionUrl' ,We are getting the following error, even after placing the jar in the "IdP" folder.</span><br></div><div><font color="#000000"><br></font></div><div><br></div><div><b>----------------------------------------- Error Message ----------------------------------------------------</b></div><div><font color="#ff0000">Loading ESAPI.properties via file I/O failed. Exception was: java.io.FileNotFoundException</font></div><div><font color="#ff0000">Attempting to load ESAPI.properties via the classpath.</font></div><div><font color="#ff0000">ESAPI.properties could not be loaded by any means. Fail. Exception was: java.lang.IllegalArgumentException: Failed to load ESAPI.properties as a classloader resource.</font></div><div><font color="#ff0000">Exception in thread "main" org.owasp.esapi.errors.ConfigurationException: java.lang.reflect.InvocationTargetException SecurityConfiguration class (org.owasp.esapi.reference.DefaultSecurityConfiguration) CTOR threw exception.</font></div><div><font color="#ff0000">    at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:129)</font></div><div><font color="#ff0000">    at org.owasp.esapi.ESAPI.securityConfiguration(ESAPI.java:184)</font></div><div><font color="#ff0000">    at org.owasp.esapi.ESAPI.encoder(ESAPI.java:99)</font></div><div><font color="#ff0000">    at org.rancore.testJasp.TestEsapi.main(TestEsapi.java:59)</font></div><div><font color="#ff0000">Caused by: java.lang.reflect.InvocationTargetException</font></div><div><font color="#ff0000">    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</font></div><div><font color="#ff0000">    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</font></div><div><font color="#ff0000">    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</font></div><div><font color="#ff0000">    at java.lang.reflect.Method.invoke(Unknown Source)</font></div><div><font color="#ff0000">    at org.owasp.esapi.util.ObjFactory.make(ObjFactory.java:86)</font></div><div><font color="#ff0000">    ... 3 more</font></div><div><font color="#ff0000">Caused by: org.owasp.esapi.errors.ConfigurationException: ESAPI.properties could not be loaded by any means. Fail.</font></div><div><font color="#ff0000">    at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfiguration(DefaultSecurityConfiguration.java:439)</font></div><div><font color="#ff0000">    at org.owasp.esapi.reference.DefaultSecurityConfiguration.<init>(DefaultSecurityConfiguration.java:227)</font></div><div><font color="#ff0000">    at org.owasp.esapi.reference.DefaultSecurityConfiguration.getInstance(DefaultSecurityConfiguration.java:75)</font></div><div><font color="#ff0000">    ... 8 more</font></div><div><font color="#ff0000">Caused by: java.lang.IllegalArgumentException: Failed to load ESAPI.properties as a classloader resource.</font></div><div><font color="#ff0000">    at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfigurationFromClasspath(DefaultSecurityConfiguration.java:667)</font></div><div><font color="#ff0000">    at org.owasp.esapi.reference.DefaultSecurityConfiguration.loadConfiguration(DefaultSecurityConfiguration.java:436)</font></div><div><font color="#ff0000">    ... 10 more</font></div><div><br></div><div><div><b>----------------------------------------- Error Message ----------------------------------------------------</b></div></div><div><br></div><div>Queries:<br></div><div>1) Am i missing any jar in the idp-3.1 folder along with esapi.jar to resolve above error?  OR</div><div>2) Do i need to download the  missing prop file -"ESAPI.properties" and place them at esapi.jar and generate jar again ?</div><div>3) Do I need to make any explicit initialization to load "ESAPI.properties" ?</div><div><br></div></div>