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 sam smith <sa...@yahoo.com> on 2003/11/08 00:07:33 UTC
still struggling with ant task (re-post)
I'm still unable to get the cactus ant task to poll the URL I am specifying to determine if my server is started (https://fafsasundev.ic.ncs.com:8443/FOTWWebApp). I've tried all of the following:
ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -Dcactus.contextURL=https://fafsasu
ndev.ic.ncs.com:8443/FOTWWebApp
ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -Dcactus.config=/www/dev50/fotw/mer
ge/cactus.txt
ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -propertyfile /www/dev50/fotw/merge
/cactus.txt
I also tried setting this by placing a cactus.properties file in my classpath.
All of these give me the same result:
file:/www/dev50/fotw/merge/f45run_ut.xml:82: Failed to start the container after more th
an [120000] ms. Trying to connect to the [http://localhost:8080/FOTWWebApp/ServletRedirector?Cactus_
Service=RUN_TEST] test URL yielded a [-1] error code. Please run in debug mode for more details about the error.
Can anyone tell me what I am doing wrong or at least RTFM me?
Thanks,
Sam
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
RE: still struggling with ant task (re-post)
Posted by sam smith <sa...@yahoo.com>.
My post wasn't clear, but I've got all of the cactus/cactifywar stuff setup correctly. The problem here is that somehow I missed that Cactus doesn't work with https (thanks Vincent). Once I changed this to use http, it worked fine... I might also mention that because of our setup (IHS webserver, WebSphere appserver), I had to have our admin update the IHS plugin in order for this to work.
Anyway, many thanks for the help.
Sam
Vincent Massol <vm...@pivolis.com> wrote:
> -----Original Message-----
> From: sam smith [mailto:samtsmith@yahoo.com]
> Sent: 08 November 2003 00:08
> To: cactus-user@jakarta.apache.org
> Subject: still struggling with ant task (re-post)
>
> I'm still unable to get the cactus ant task to poll the URL I am
> specifying to determine if my server is started
> (https://fafsasundev.ic.ncs.com:8443/FOTWWebApp). I've tried all of
the
> following:
>
> ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -
> Dcactus.contextURL=https://fafsasu
> ndev.ic.ncs.com:8443/FOTWWebApp
This won't work as cactus does not currently support https. Use the http
URL and it should work.
> ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -
> Dcactus.config=/www/dev50/fotw/mer
> ge/cactus.txt
This may work. It all depends what you've put in cactus.txt
> ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -propertyfile
> /www/dev50/fotw/merge
> /cactus.txt
What's the difference with the previous try?
You seem to be running Cactus in "manual" mode. I'd highly suggest you
read http://jakarta.apache.org/cactus/integration/ant/index.html. You
should find all your answers there. This requires Cactus 1.5 though.
>
> I also tried setting this by placing a cactus.properties file in my
> classpath.
This should also work. But again none of this is necessary since Cactus
1.5.
>
> All of these give me the same result:
> file:/www/dev50/fotw/merge/f45run_ut.xml:82: Failed to start the
container
> after more th
> an [120000] ms. Trying to connect to the
> [http://localhost:8080/FOTWWebApp/ServletRedirector?Cactus_
> Service=RUN_TEST] test URL yielded a [-1] error code. Please run in
debug
> mode for more details about the error.
>
> Can anyone tell me what I am doing wrong or at least RTFM me?
It probably means that you haven't set up the cactus redirector in your
web.xml. Again, if you use Cactus 1.5 and the / ant
tasks this should be transparent.
Thanks
-Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
RE: still struggling with ant task (re-post)
Posted by Vincent Massol <vm...@pivolis.com>.
> -----Original Message-----
> From: sam smith [mailto:samtsmith@yahoo.com]
> Sent: 08 November 2003 00:08
> To: cactus-user@jakarta.apache.org
> Subject: still struggling with <cactus> ant task (re-post)
>
> I'm still unable to get the cactus ant task to poll the URL I am
> specifying to determine if my server is started
> (https://fafsasundev.ic.ncs.com:8443/FOTWWebApp). I've tried all of
the
> following:
>
> ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -
> Dcactus.contextURL=https://fafsasu
> ndev.ic.ncs.com:8443/FOTWWebApp
This won't work as cactus does not currently support https. Use the http
URL and it should work.
> ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -
> Dcactus.config=/www/dev50/fotw/mer
> ge/cactus.txt
This may work. It all depends what you've put in cactus.txt
> ant -f /www/dev50/fotw/merge/f45run_ut.xml run_tests -propertyfile
> /www/dev50/fotw/merge
> /cactus.txt
What's the difference with the previous try?
You seem to be running Cactus in "manual" mode. I'd highly suggest you
read http://jakarta.apache.org/cactus/integration/ant/index.html. You
should find all your answers there. This requires Cactus 1.5 though.
>
> I also tried setting this by placing a cactus.properties file in my
> classpath.
This should also work. But again none of this is necessary since Cactus
1.5.
>
> All of these give me the same result:
> file:/www/dev50/fotw/merge/f45run_ut.xml:82: Failed to start the
container
> after more th
> an [120000] ms. Trying to connect to the
> [http://localhost:8080/FOTWWebApp/ServletRedirector?Cactus_
> Service=RUN_TEST] test URL yielded a [-1] error code. Please run in
debug
> mode for more details about the error.
>
> Can anyone tell me what I am doing wrong or at least RTFM me?
It probably means that you haven't set up the cactus redirector in your
web.xml. Again, if you use Cactus 1.5 and the <cactus>/<cactifywar> ant
tasks this should be transparent.
Thanks
-Vincent