I added a OWASP ESAPI library to my project. And currently I'm stuck with a problem where to locate ESAPI.properties
file. This project later should be deployed on few servers to which I don't have an access. So in my opinion there is no way to customizeorg.owasp.esapi.resources
variable and I can't put it under user home directory. So the only place where I can put this file is SystemResource Directory/resourceDirectory
but where is it? I have already tried to put these files:
.esapi/ESAPI.properties
esapi/ESAPI.properties
ESAPI.properties
Into these locations:
$CATALINA_HOME/webapps/<MY_PROJECT>/
$CATALINA_HOME/webapps/<MY_PROJECT>/WEB-INF
$CATALINA_HOME/webapps/<MY_PROJECT>/WEB-INF/classes
$CATALINA_HOME/webapps/<MY_PROJECT>/META-INF
But in all of these places I get an error:
Not found in SystemResource Directory/resourceDirectory: .esapi\ESAPI.properties
So where I should locate this file? It's a legacy project(just Eclipse Project without Maven) and it's structure is pretty ugly. There is no such directory like /src/main/resources
where in my opinion this ESAPI.properties
file should be located. I have created this directory, but where finally this file should be after deployment a WAR archive to Tomcat?
com
as it should be. And there areesapi/ESAPI.properties
file. But I still seeNot found in SystemResource Directory/resourceDirectory: .esapi\ESAPI.properties
error message. – Haler