_
From: Prabhakar, Kaverappa
Sent: Thursday, August 20, 2009 10:20 AM
To: 'users@tomcat.apache.org'
Subject: Accessing Properties file located in Conf Directory of Tomcat 5.XX
We have to place, as per rules set by the department, the properties file
We have to place, as per rules set by the department, the properties file in
the Conf directory of Tomcat AS. The TOMCAT does not find the properties file
placed in CONF directory but it does find when placed in Common or Shared
directory of TOMCAT.
I tried placing the directory path in the
...@do.treas.gov
To: users@tomcat.apache.org
Date: Thu, 20 Aug 2009 10:52:30 -0400
Subject: FW: Accessing Properties file located in Conf Directory of Tomcat
5.XX
_
From: Prabhakar, Kaverappa
Sent: Thursday, August 20, 2009 10:20 AM
I am assuming loader is an instance of a classloader. The classloader
doesn't see the conf directory. (But as your noticed - it does see the
common directory)
Your easiest (but tomcat specific) solution is to do something like this:
File confDir = new File(System.properties(catalina.home),
To: users@tomcat.apache.org
Date: Thu, 20 Aug 2009 10:52:30 -0400
Subject: FW: Accessing Properties file located in Conf Directory of Tomcat 5.XX
_
From: Prabhakar, Kaverappa
Sent: Thursday, August 20, 2009 10:20 AM
To: 'users@tomcat.apache.org'
Subject