You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Stefan Groschupf <sg...@media-style.com> on 2003/03/23 18:07:55 UTC

ServletRedirector to early

Hi, now since I get cactus using allready started jboss instance I get
another problem.
I would say that cactus try to early to call the ServletRedirector.
My  jetty reports a 404 since the deployment is just running.
What can I do that cactus wait some seconds longer on my server?

Thanks
Stefan
    [junit]     Caused an ERROR
    [junit] Failed to get the test results. This is probably due to an error
that happened on the server side when trying to execute the tests. Here is
what was returned by the server : [<HTML>
    [junit] <HEAD>
    [junit] <TITLE>Error 404 Could not find resource for
/weta-util/ServletRedir
ector</TITLE>
    [junit] <BODY>
    [junit] <H2>HTTP ERROR: 404 Could not find resource for
/weta-util/ServletRe
director</H2>





AW: ServletRedirector to early

Posted by Stefan Groschupf <sg...@media-style.com>.
Hey Christopher,

><waitfor> task with a nested <http> condition to make Ant wait until the
>servlet redirector responds.

That was a very good hint, thank you it run now.
By the way I also notice that is necessary to have a well working clean
target, since it will not run if you only overwrite *.war or +.jar files.
Normally that is working well in jboss, since with a overwrite jboss
undeploy and redeploy ypur app.
Thanks a lot for your help!
Stefan




Re: ServletRedirector to early

Posted by Christopher Lenz <cm...@gmx.de>.
Hi Stefan,

Stefan Groschupf wrote:
> Hi, now since I get cactus using allready started jboss instance I get
> another problem.
> I would say that cactus try to early to call the ServletRedirector.
> My  jetty reports a 404 since the deployment is just running.
> What can I do that cactus wait some seconds longer on my server?

Ant has a <sleep> task, but a more reliable method is to can use the Ant 
<waitfor> task with a nested <http> condition to make Ant wait until the 
servlet redirector responds.

> Thanks
> Stefan
>     [junit]     Caused an ERROR
>     [junit] Failed to get the test results. This is probably due to an error
> that happened on the server side when trying to execute the tests. Here is
> what was returned by the server : [<HTML>
>     [junit] <HEAD>
>     [junit] <TITLE>Error 404 Could not find resource for
> /weta-util/ServletRedir
> ector</TITLE>
>     [junit] <BODY>
>     [junit] <H2>HTTP ERROR: 404 Could not find resource for
> /weta-util/ServletRe
> director</H2

-- 
Christopher Lenz
/=/ cmlenz at gmx.de


RE: ServletRedirector to early

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Stefan,

Why don't you use the Ant integration provided by Cactus. It
automatically waits until the container is started before starting the
tests. I'd really recommend trying out the Sample application in Cactus
1.5dev (nightly build area).

Thanks
-Vincent

> -----Original Message-----
> From: Stefan Groschupf [mailto:sg@media-style.com]
> Sent: 23 March 2003 18:08
> To: Cactus Users List
> Subject: ServletRedirector to early
> 
> Hi, now since I get cactus using allready started jboss instance I get
> another problem.
> I would say that cactus try to early to call the ServletRedirector.
> My  jetty reports a 404 since the deployment is just running.
> What can I do that cactus wait some seconds longer on my server?
> 
> Thanks
> Stefan
>     [junit]     Caused an ERROR
>     [junit] Failed to get the test results. This is probably due to an
> error
> that happened on the server side when trying to execute the tests.
Here is
> what was returned by the server : [<HTML>
>     [junit] <HEAD>
>     [junit] <TITLE>Error 404 Could not find resource for
> /weta-util/ServletRedir
> ector</TITLE>
>     [junit] <BODY>
>     [junit] <H2>HTTP ERROR: 404 Could not find resource for
> /weta-util/ServletRe
> director</H2>
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org