Re: Location of properties file for web app in Tomcat

2009-11-19 Thread Ziggy
I had the same problem before. I didnt want to configure the location of the properties file at the tomcat instance level since i had more than one war file. What i ended up doing is add the properties file configuration on the application's context file. This meant each war file can point to its o

Re: Location of properties file for web app in Tomcat

2009-11-18 Thread hbhartee
Hi, There is a simple way of using properties file across different web applications in Tomcat. > Jar the properties file (included in package folders) and drop it in > jakarta-tomcat/common/lib directory > If you do not want to jar, just drop the properties file (included in > relevant package

Re: Location of properties file for web app in Tomcat

2009-02-07 Thread Flavio Crispim
Christopher Schultz wrote: Flavius, Flavius wrote: My ultimate goal is to give these instructions to a network admin: 1. Download and install Tomcat 2. Place war file in /webapps 3. Put the app.properties file at __ and set your database and email server info. 4. Start tomcat

Re: Location of properties file for web app in Tomcat

2009-02-07 Thread Flavio Crispim
Christopher Schultz wrote: Flavius, Flavius wrote: My ultimate goal is to give these instructions to a network admin: 1. Download and install Tomcat 2. Place war file in /webapps 3. Put the app.properties file at __ and set your database and email server info. 4. Start tomcat Som

Re: Location of properties file for web app in Tomcat

2009-02-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Flavius, Flavius wrote: > My ultimate goal is to give these instructions to a network admin: > > 1. Download and install Tomcat > 2. Place war file in /webapps > 3. Put the app.properties file at __ and set your database and > email server

RE: Location of properties file for web app in Tomcat

2009-02-02 Thread Caldarale, Charles R
> From: Flavius [mailto:flav...@silverlion.com] > Subject: Re: Location of properties file for web app in Tomcat > > It seems the ContextClassLoader should know where it's running from > on the physical path. But I haven't figured that out yet. As has been discussed o

Re: Location of properties file for web app in Tomcat

2009-02-02 Thread Flavius
Thanks guys. I think I'll try that. I had hoped to get around setting the system property by simply requiring that the properties file exist in the same dir as the war file. Then the war file can simply ask, "where am I?" and use that path to load the properties file. It seems the ContextClas

Re: Location of properties file for web app in Tomcat

2009-01-31 Thread Kirk True
Hi all, Caldarale, Charles R wrote: From: Flavius [mailto:flav...@silverlion.com] Subject: Location of properties file for web app in Tomcat 1. Where is the best place to put the properties file if I want it located outside the war itself? I don't think there's a "best place" that would

Re: Location of properties file for web app in Tomcat

2009-01-31 Thread Keshav Prasad
I think what Chuck mentioned is a nice approach. You could set an env variable and read it off when app server initializes something like this- String path = System.getenv("PROP_FILE_PATH"); Use this file path to read the properties file. On Sat, Jan 31, 2009 at 11:19 AM, Caldarale, Charles R <

RE: Location of properties file for web app in Tomcat

2009-01-31 Thread Caldarale, Charles R
> From: Flavius [mailto:flav...@silverlion.com] > Subject: Location of properties file for web app in Tomcat > > 1. Where is the best place to put the properties file > if I want it located outside the war itself? I don't think there's a "best place" that would be applicable to all environments.