On Fri, Mar 28, 2014 at 12:31 PM, Propes, Barry L <barry.l.pro...@citi.com>wrote:
> > > -----Original Message----- > From: Mark Shifman [mailto:mark.shif...@yale.edu] > Sent: Friday, March 28, 2014 12:34 PM > To: Tomcat Users List > Subject: Re: Connection pooling issue on Tomcat > > ===== > Thanks, Mark, I got it figured out. > > I had changed it a couple of weeks back to point to our COB region, which > is up only during a specified time, and didn't realize I hadn't changed it > back. But I also thought that stopping and starting the app in the manager > console would overwrite the app xml file in the conf folder, and that > didn't happen. > I checked it there and discovered the problem. > > I know this thread is closed, but I just wanted to ask you a follow up question Barry. You said that the app xml in the conf folder wasn't being overwritten. Are you placing that xml file there manually? Or did you set copyXML in your Host element to true to make it copy that file there? Because by default, copyXML is set to false, that attribute is not even named in the default Tomcat server.xml if you are using the zip version. And per the docs, that app xml file will be used in place of the one in your web app, even if the web app one is newer. [quote] Set to true if you want a context XML descriptor embedded inside the application (located at /META-INF/context.xml) to be copied to xmlBase when the application is deployed. On subsequent starts, the copied context XML descriptor will be used in preference to any context XML descriptor embedded inside the application *** even if the descriptor embedded inside the application is more recent ***. The flag's value defaults to false. Note if *deployXML* is false, this attribute will have no effect. [/quote] If you place the contents of your app xml file in a file called context.xml in /META-INF/, you won't have to worry about updating the one in the conf folder. I only place xml files in conf when I want something static, like mapping an output directory for GIS applications to write images.