I have multiple Tomcat instances running. How do I go about "conf"/"log" folders, are they constant strings anywhere?
On 7/4/07, Yifan (Eric) Jiang <[EMAIL PROTECTED]> wrote:
Setup your environment variable "CATALINA_HOME" (if you are using Windows, make sure it is a system environment rather than a user environment variable), and then use System.getenv("CATALINA_HOME"); to get the tomcat path. Hope this can help Cheers Eric -----Original Message----- From: Joe Kramer [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 July 2007 4:57 p.m. To: users@tomcat.apache.org Subject: How to find Tomcat config and log path? Hello, I've been googling and searching Tomcat website and couldn't find an answer to this problem. I need to find a path to tomcat conf (and log) folders from within my servlet. I imagine there should be something like: SomeCatalinaClass.getHomePath()+File.separatorChar+SomeCatalinaClass.CON F_DIR_CONSTANT Can anyone help me please? Thanks. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]