Tomcat 5.5 JRE Working Director

Hello,

I have an instance of Tomcat 5.5 running with IIS6. When my web app starts up, the first thing it does is reads a custom config file, and starts up a custom logger class. The application, currently requires that the config and log files exists in windows/system32. Which wouldn't be a problem, but I need to support three environments (Dev/Test/Demo) on one machine, and currently that means all three environments would read the same config file.

So, I was wondering how I can define the current working directory for the JRE when it starts. So, instead of pointing to windows/system32 (which it's doing now) point to my application's document root directory.

I would like to avoid making any changes to the code,. but if that's the only way, then, I guess I'll have to do it that way. But the code is working fine with three enviorments on an older version of Tomcat.

Thanks!

Chris

[932 byte] By [schmitzcja] at [2007-10-2 20:42:34]
# 1
Just in case anyone was wondering, I upgraded to version 5.5, and when setting everything up, I defined CATALINA_BASE and that resolved the issue. Well,.. I'm not sure if defining CATALINA_BASE was the resolution, or the upgrade.
schmitzcja at 2007-7-13 23:25:56 > top of Java-index,Desktop,Runtime Environment...