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--
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
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?
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
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
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
, 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
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