Re: where to place context configuration

2008-08-14 Thread Mark Thomas
Robert Dietrick wrote: > Hi, > > I just noticed that I had a definition in both > $CATALINA_HOME/conf/Catalina/localhost/mywebapp.xml and in > $CATALINA_HOME/webapps/mywebapp.war/META-INF/context.xml. In both of > these context definitions, I define a JNDI database connection pool > with the sam

Re: where to place context configuration

2008-08-14 Thread Robert Dietrick
I would very much prefer to use only the one in mywebapp/META-INF/contex.xml, as this is much less invasive (does not require changing/adding anything to tomcat's global config directories). But this doesn't seem to work. I can leave it as is (and am becoming resigned to the fact that this is my

RE: where to place context configuration

2008-08-14 Thread Angus Mezick
bject: Re: where to place context configuration I would very much prefer to use only the one in mywebapp/META-INF/contex.xml, as this is much less invasive (does not require changing/adding anything to tomcat's global config directories). But this doesn't seem to work. I can leave i

Re: where to place context configuration

2008-08-14 Thread Robert Dietrick
a production server makes me VERY > nervous. > > --Angus Mezick > > -Original Message- > From: Robert Dietrick [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2008 2:22 PM > To: Tomcat Users List > Subject: Re: where to place context configuration > >

Re: where to place context configuration

2008-08-14 Thread Guojun Zhu
to use the correct > version of possibly different files in a production server makes me VERY > nervous. > > --Angus Mezick > > -Original Message- > From: Robert Dietrick [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2008 2:22 PM > To: Tomcat Users List > Subje

Re: where to place context configuration

2008-08-14 Thread Mark Thomas
Robert Dietrick wrote: > I would very much prefer to use only the one in > mywebapp/META-INF/contex.xml, as this is much less invasive (does not > require changing/adding anything to tomcat's global config > directories). But this doesn't seem to work. That isn't the way it is designed. > > I ca

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
> From: Robert Dietrick [mailto:[EMAIL PROTECTED] > Subject: Re: where to place context configuration > > I would very much prefer to use only the one in > mywebapp/META-INF/contex.xml I hope the above is a typo, because if it's really in "contex.xml" Tomcat won'

Re: where to place context configuration

2008-08-14 Thread Len Popp
Angus Mezick >> >> -Original Message- >> From: Robert Dietrick [mailto:[EMAIL PROTECTED] >> Sent: Thursday, August 14, 2008 2:22 PM >> To: Tomcat Users List >> Subject: Re: where to place context configuration >> >> I would very much pr

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
> From: Angus Mezick [mailto:[EMAIL PROTECTED] > Subject: RE: where to place context configuration > > Am I the only one that is REALLY disturbed about that idea of > REQUIRING two identical files to run an app? Probably, because Tomcat does not require that. You may place t

Re: where to place context configuration

2008-08-14 Thread Len Popp
s and the server admins are not within shouting distance. (Such as where I work.) -- Len On Thu, Aug 14, 2008 at 14:57, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Angus Mezick [mailto:[EMAIL PROTECTED] >> Subject: RE: where to place context configuration >>

Re: where to place context configuration

2008-08-14 Thread Mark H. Wood
On Thu, Aug 14, 2008 at 01:57:22PM -0500, Caldarale, Charles R wrote: > You may place the element in either location, but Tomcat > *may* copy the one from META-INF/context.xml to conf/Catalina/[host] > so it can access it directly. Proper undeployment will remove the > copy. Is there a page some

Re: where to place context configuration

2008-08-14 Thread Robert Dietrick
On Thu, Aug 14, 2008 at 11:52 AM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: >> From: Robert Dietrick [mailto:[EMAIL PROTECTED] >> Subject: Re: where to place context configuration >> >> I would very much prefer to use only the one in >> mywebapp/META-INF/

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
> From: Len Popp [mailto:[EMAIL PROTECTED] > Subject: Re: where to place context configuration > > So, the server admin can configure the DB server etc. by editing the > file under the conf dir, but every time they deploy a new version of > the app the settings are auto-wiped?

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
> From: Mark H. Wood [mailto:[EMAIL PROTECTED] > Subject: Re: where to place context configuration > > Is there a page somewhere which documents this? I don't think so, at least not in sufficient detail. Mark T's recent message covers the steps: http://marc.info/?l=tomcat-

Re: where to place context configuration

2008-08-14 Thread Len Popp
On Thu, Aug 14, 2008 at 15:55, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > If you just want to replace the webapp, then dropping in a new .war file will > not lose the element in conf/Catalina/[host]/[appName].xml file, but things > may not be cleaned up properly, especially on Windows syst

RE: where to place context configuration

2008-08-14 Thread Caldarale, Charles R
> From: Len Popp [mailto:[EMAIL PROTECTED] > Subject: Re: where to place context configuration > > But earlier you said: > > if you're updating the .war without doing an undeployment > > first, you're breaking the rules, and all bets are off. Yes, that was pro

Re: where to place context configuration

2008-08-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Len, Len Popp wrote: > So, the server admin can configure the DB server etc. by editing the > file under the conf dir, but every time they deploy a new version of > the app the settings are auto-wiped? No. Ideally, the server admin sets up data sourc

Re: where to place context configuration

2008-08-15 Thread Len Popp
Thanks for reminding me about resource-ref. I don't think that putting app-specific settings in server.xml is ideal - I'd rather have the per-app config files - but I can see that would get around the issues I'm complaining about. -- Len On Fri, Aug 15, 2008 at 10:57, Christopher Schultz <[EMAIL