You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ka...@do.treas.gov on 2009/08/20 16:52:30 UTC
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
Re: Accessing Properties file located in Conf Directory of Tomcat
5.XX
Posted by Pid <pi...@pidster.com>.
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.Prabhakar@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Accessing Properties file located in Conf Directory of Tomcat
5.XX
Posted by Martin Gainty <mg...@hotmail.com>.
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.Prabhakar@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