There was security scan run on our Project Code and Vulnerability was reported for ESAPI 2.1.0.0 jar. Hence we had to change our code to use ESAPI 2.3.0.0 with zero vulnerabilities. We changed and the code passed the security scan. However, the code is throwing error in Runtime with
“ java.lang.NoClassDefFoundError: org.owasp.esapi.reference.DefaultValidator(初始化失败)org.owasp.esapi.reference.DefaultValidator(初始化失败)” .
调试日志如下:
Text:CHARACTER:java.lang.NoClassDefFoundError: org.owasp.esapi.reference.DefaultValidator(初始化失败)org.owasp.esapi.reference.DefaultValidator(初始化失败) 可恢复异常 文件:字符:C