In my Tomcat servlet, I am using a jar library that looks for certain .properties
files in System.getProperty("user.dir")
.
The issue is that when I deploy the servlet on different servers, the "user.dir"
is different. I'd like them to be the same. Is there a way to configure this directory so that it is the same for each server?
I also ran catalina.sh version
, and the "user.dir"
directory doesn't appear in the output (including CATALINA_BASE
and CATALINA_HOME
), which is strange. This happens for some of the servers. On other servers, the "user.dir"
matches CATALINA_BASE
.