FileInputStream in = new FileInputStream("MyFile.properties");
If so, try loading it with
ServletContext.getResource[AsStream](); or load
it as a
java.util.ResourceBundle.
-- Bill K.
-----Original Message-----
From: Srinivasan, Radha [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 10:07 AM
To: '[EMAIL PROTECTED]'
Subject: RE: PROPERTY FILE LOCATION IN TOMCAT ?Hi Bill,
No I am using java.util.Properties() as follows.
Properties prop = new Properties();
props.load(new FileInputStream(....));
In either case why is Tomcat not looking at my project directory?
Thanks
Radha SrinivasanSoftware Engineer
Email : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
303.417.7329 office
303.417.7416 fax
-----Original Message-----
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 10:59 AM
To: '[EMAIL PROTECTED]'
Subject: RE: PROPERTY FILE LOCATION IN TOMCAT ?
Are you trying to access the file directly, like
FileRead in = new FileReader("MyFile.properties");
If so, try loading it with ServletContext.getResource[AsStream](); or load
it as a java.util.ResourceBundle.-- Bill K.
-----Original Message-----
From: Srinivasan, Radha [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 9:38 AM
To: Tomcat users (E-mail)
Subject: PROPERTY FILE LOCATION IN TOMCAT ?
I did not get any response for my previous posting so I am posting it again.
Please respond.
Thanks
Radha
-----Original Message-----
From: Srinivasan, Radha [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 9:42 AM
To: '[EMAIL PROTECTED]'
Subject: Property file location in tomcat?
Hi all,
Thanks in advance.
tomcat version - 3.2.1
OS : Windows 2000
I have created a separate project directory (not under webapps) and I have
modified the server.xml in conf directory.
<Context path="/myproj"
docBase="H:/myproj"
crossContext="true"
debug="0"
reloadable="true"
trusted="false" >
</Context>
I have some servlets and everything seems to work fine except when I access
property file.
Tomcat looks for the property file under tomcat/bin directory. Why is it not
looking at my project root directory?
Is there any way to set it?
Radha Srinivasan
Software Engineer
Email : [EMAIL PROTECTED]
303.417.7329 office
303.417.7416 fax