Re: recognise tomcat finished starting up

2007-04-16 Thread Martin Gainty
David- If you're trying to emulate java class functionality in a tomcat environment I would suggest looking at David Weiss TomcatAwareTestCase com.dawidweiss.junittomcat.TomcatAwareTestCase http://www.cs.put.poznan.pl/dweiss/xml/projects/junit-tomcat/index.xml?lang=en Anyone else? Martin--

RE: recognise tomcat finished starting up

2007-04-16 Thread Peter Crowther
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] We're using Spring and therefore have quite a long startup time - checking if the service is started doesn't help therefore. So I'm looking for a way to detect if tomcat's startup has finished... Being the lazy guy I am, I'd set up a

Re: recognise tomcat finished starting up

2007-04-16 Thread Hassan Schroeder
On 4/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So I'm looking for a way to detect if tomcat's startup has finished... Seems like a chicken-and-egg problem -- Tomcat's ready when it'll respond to your test :-) Why don't you just incorporate a loop[sleep]-on-fail in the first test?

Re: recognise tomcat finished starting up

2007-04-16 Thread Rashmi Rubdi
On 4/16/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: So I'm looking for a way to detect if tomcat's startup has finished... You didn't mention the version of Tomcat you're using. According to the Servlet 2.4 spec : The servlet context has javax.servlet.ServletContextListener just been

Re: recognise tomcat finished starting up

2007-04-16 Thread dhay
Thanks for the responses...I'll try the listener creating some kind of file I can check for the existence of - this is complicated by trying to do it remotely... A loop-on-fail in the first test would work...as long as my first test never breaks ;-) cheers, David

Re: recognise tomcat finished starting up

2007-04-16 Thread dhay
Hi Martin, Thanks for the link... I'm actually running the tests against a remote installed tomcat, by poking it over http akin to HTTPUnit. However, I'm working on automating the remote install and uninstall too. I have it working, but am trying to figure out how to tell whether the install

Re: recognise tomcat finished starting up

2007-04-16 Thread Martin Gainty
, 2007 12:08 PM Subject: Re: recognise tomcat finished starting up Hi Martin, Thanks for the link... I'm actually running the tests against a remote installed tomcat, by poking it over http akin to HTTPUnit. However, I'm working on automating the remote install and uninstall too. I have

RE: recognise tomcat finished starting up

2007-04-16 Thread Caldarale, Charles R
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Re: recognise tomcat finished starting up So I'm looking for a way to detect if tomcat's startup has finished... If you have remote access to Tomcat's logs directory, you could monitor the catalina.log file for the INFO: Server