Re: tuning to accommodate Apache 2.4 event mpm

2017-04-27 Thread John Cartwright - NOAA Federal
k Thomas wrote: > On 27/04/17 17:47, John Cartwright - NOAA Federal wrote: >> Hello All, >> >> We recently switched to Apache 2.4 and it's event mpm and are now >> finding that some of our Tomcat 7 webapps are failing sporadically >> when accessed via Apache -

tuning to accommodate Apache 2.4 event mpm

2017-04-27 Thread John Cartwright - NOAA Federal
Hello All, We recently switched to Apache 2.4 and it's event mpm and are now finding that some of our Tomcat 7 webapps are failing sporadically when accessed via Apache - generally reporting 503s back to the browser. The webapps work reliably when accessed directly from Tomcat. We're using mod_j

Re: using log4j in a webapp using embedded tomcat

2014-01-28 Thread John Cartwright - NOAA Federal
Thanks for your reply Chris. On Mon, Jan 27, 2014 at 12:40 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > Are you running one and only one webapp in your Tomcat instance? If > not, then the system property will override it for all webapps, which > will probably cause confusion (

using log4j in a webapp using embedded tomcat

2014-01-25 Thread John Cartwright - NOAA Federal
Hello All, I have a simple program which uses embedded-tomcat (7.0.50) to host a WAR file. The webapp is using log4j and logs correctly when run inside a standard tomcat container. However, when hosted by the embedded-tomcat, the log4j configuration does not appear to be found. I'm specifying a

Re: running packed WAR files with embedded tomcat

2014-01-22 Thread John Cartwright - NOAA Federal
> > > > > > 2014/1/22 Valery Shyshkin > > > >> Try: > >> > >> File baseDir = new File(System.getProperty("java.io.tmpdir")); > >> tomcat.addContext("", baseDir.getAbsolutePath()); > >> > >> > >> > &

Re: running packed WAR files with embedded tomcat

2014-01-21 Thread John Cartwright - NOAA Federal
> 2014/1/21 John Cartwright - NOAA Federal > > > Hello All, > > > > I'm trying to create a very basic embeded tomcat 7 application to host a > > packed WAR file. My code looks like: > > > > Tomcat tomcat = new Tomcat() > > tomcat.setPort(port) >

running packed WAR files with embedded tomcat

2014-01-20 Thread John Cartwright - NOAA Federal
Hello All, I'm trying to create a very basic embeded tomcat 7 application to host a packed WAR file. My code looks like: Tomcat tomcat = new Tomcat() tomcat.setPort(port) tomcat.setBaseDir(".") tomcat.addWebapp(pathToWarFile, contextName) It seems to work, but I'm getting an exception on startu