FW: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Kaverappa.Prabhakar


_
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 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 java code of Jdeveloper (see below 
for variation of codes used) and created WAR file using Jdeveloper to deploy it 
on TOMCAT. But still it does not find it.

I tried placing the directory path in the java code of Jdeveloper (see below 
for variation of codes used) and created WAR file using Jdeveloper to deploy it 
on TOMCAT. But still it does not find it.

prop.load(loader.getResourceAsStream(genPricing.properties));
prop.load(loader.getResourceAsStream(/genPricing.properties));
prop.load(loader.getResourceAsStream(/conf/genPricing.properties));
prop.load(loader.getResourceAsStream(conf/genPricing.properties));
prop.load(loader.getResourceAsStream($tomcat_home\\conf\\genPricing.properties));
prop.load(loader.getResourceAsStream(${tomcat_home}/conf/genPricing.properties));

Any suggestion as to how to read the properties file located in CONF directory.

Quick response would be greatly appreciated.

Prabhakar





Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Kaverappa.Prabhakar
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 java code of Jdeveloper (see below 
for variation of codes used) and created WAR file using Jdeveloper to deploy it 
on TOMCAT. But still it does not find it.

I tried placing the directory path in the java code of Jdeveloper (see below 
for variation of codes used) and created WAR file using Jdeveloper to deploy it 
on TOMCAT. But still it does not find it.

prop.load(loader.getResourceAsStream(genPricing.properties));
prop.load(loader.getResourceAsStream(/genPricing.properties));
prop.load(loader.getResourceAsStream(/conf/genPricing.properties));
prop.load(loader.getResourceAsStream(conf/genPricing.properties));
prop.load(loader.getResourceAsStream($tomcat_home\\conf\\genPricing.properties));
prop.load(loader.getResourceAsStream(${tomcat_home}/conf/genPricing.properties));

Any suggestion as to how to read the properties file located in CONF directory.

Quick response would be greatly appreciated.

Prabhakar






RE: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Martin Gainty

there are at least 100 people on this list that can accomplish this requirement

you will need to handle this requirement by posting a statement of work 
details on how to write a statement of work referenced here
http://www.usability.gov/plan/sow.html

1 or more engineers will respond with a RFQ with a proposal and cost estimate. 
You can then select the most qualified help... 

let us know when you have posted your SOW

__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 From: kaverappa.prabha...@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
 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 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 java code of Jdeveloper (see below 
 for variation of codes used) and created WAR file using Jdeveloper to deploy 
 it on TOMCAT. But still it does not find it.
 
 I tried placing the directory path in the java code of Jdeveloper (see below 
 for variation of codes used) and created WAR file using Jdeveloper to deploy 
 it on TOMCAT. But still it does not find it.
 
 prop.load(loader.getResourceAsStream(genPricing.properties));
 prop.load(loader.getResourceAsStream(/genPricing.properties));
 prop.load(loader.getResourceAsStream(/conf/genPricing.properties));
 prop.load(loader.getResourceAsStream(conf/genPricing.properties));
 prop.load(loader.getResourceAsStream($tomcat_home\\conf\\genPricing.properties));
 prop.load(loader.getResourceAsStream(${tomcat_home}/conf/genPricing.properties));
 
 Any suggestion as to how to read the properties file located in CONF 
 directory.
 
 Quick response would be greatly appreciated.
 
 Prabhakar
 
 
 

_
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery

Re: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Tim Funk
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), conf);
File propFile = new File(confDir , genPricing.properties);
Properties p = new Properties();
p.load(new FileInputStream(propFile));


-Tim


kaverappa.prabha...@do.treas.gov wrote:

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 java code of Jdeveloper (see below 
for variation of codes used) and created WAR file using Jdeveloper to deploy it 
on TOMCAT. But still it does not find it.

I tried placing the directory path in the java code of Jdeveloper (see below 
for variation of codes used) and created WAR file using Jdeveloper to deploy it 
on TOMCAT. But still it does not find it.

prop.load(loader.getResourceAsStream(genPricing.properties));
prop.load(loader.getResourceAsStream(/genPricing.properties));
prop.load(loader.getResourceAsStream(/conf/genPricing.properties));
prop.load(loader.getResourceAsStream(conf/genPricing.properties));
prop.load(loader.getResourceAsStream($tomcat_home\\conf\\genPricing.properties));
prop.load(loader.getResourceAsStream(${tomcat_home}/conf/genPricing.properties));

Any suggestion as to how to read the properties file located in CONF directory.

Quick response would be greatly appreciated.

Prabhakar







-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Accessing Properties file located in Conf Directory of Tomcat 5.XX

2009-08-20 Thread Pid

On 20/08/2009 16:24, Martin Gainty wrote:


there are at least 100 people on this list that can accomplish this requirement


*Can* yes. *Will*, no.


you will need to handle this requirement by posting a statement of work
details on how to write a statement of work referenced here
http://www.usability.gov/plan/sow.html


What in the world are you talking about?/rhetorical


1 or more engineers will respond with a RFQ with a proposal and cost estimate.
You can then select the most qualified help...


@Kaverappa: No, they *absolutely will not*.


let us know when you have posted your SOW


No, just ignore this nonsense.

@Martin, if you're pitching for work, can you do it somewhere else please?


p



__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.





From: kaverappa.prabha...@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
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 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 java code of Jdeveloper (see below 
for variation of codes used) and created WAR file using Jdeveloper to deploy it 
on TOMCAT. But still it does not find it.

I tried placing the directory path in the java code of Jdeveloper (see below 
for variation of codes used) and created WAR file using Jdeveloper to deploy it 
on TOMCAT. But still it does not find it.

prop.load(loader.getResourceAsStream(genPricing.properties));
prop.load(loader.getResourceAsStream(/genPricing.properties));
prop.load(loader.getResourceAsStream(/conf/genPricing.properties));
prop.load(loader.getResourceAsStream(conf/genPricing.properties));
prop.load(loader.getResourceAsStream($tomcat_home\\conf\\genPricing.properties));
prop.load(loader.getResourceAsStream(${tomcat_home}/conf/genPricing.properties));

Any suggestion as to how to read the properties file located in CONF directory.

Quick response would be greatly appreciated.

Prabhakar





_
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org