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 Herve Marcellini <hm...@diligent-systems.com> on 2002/10/26 01:20:42 UTC

Problem with cactus, ant and weblogic 6.1: runservertests hangs i f weblogic dooesn't start

Hello,

I am using the ant task 'runservertests' as indicated in the manual.
It works perfectly well when the server starts correctly, but I have a
problem when the weblogic server doesn't start (because of a
misconfiguration,
a file missing...).
The ant logs returns "Java Result: 1", and ant never exits from the
"start.weblogic"
task I defined.
Is there any "timeout" that I could set up in 'runservertests'?

Thanks for your help,
Herve

<target name="unittests.with.weblogic" description="Run tests on Diligent
Server" depends="unittests.compile">
    <taskdef name="runservertests"
classname="org.apache.cactus.ant.RunServerTestsTask">
        <classpath>
            <pathelement location="${cactus.ant.jar}"/>
        </classpath>
    </taskdef>
    <runservertests
 
testURL="http://localhost:7001/ServletRedirector?Cactus_Service=RUN_TEST"
        startTarget="start.weblogic"
        stopTarget="stop.weblogic"
        testTarget="unittests.all"/>
</target>

<target name="start.weblogic">
 ...
</target>

<target name="stop.weblogic">
 ...
</target>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>