When I use the runservertests Cactus custom Ant task, it starts my server allright but then hangs and the tests are not executed. What is happening?
It means that the testURL attribute you’ve specified in runservertests is not a valid URL. It must be a URL that is valid when the server is up. To diagnosis the problem simply open a browser once your server is started (i.e. when the task hangs) and type the URL in your browser. An alternative to debug is also to run Ant in debug mode (ant -debug [your target]). With Cactus 1.3, the correct URL to call is the following, which is always valid: http://localhost:8080/webapp/ServletRedirector?Cactus_Service=RUN_TEST. Of course replace webapp by your webapp context and replace the port by the one you’re using.
Related Questions
- When I use the runservertests Cactus custom Ant task, it starts my server allright but then hangs and the tests are not executed. What is happening?
- Why do my custom task containers see Unknown Elements in Ant 1.6 - they worked in Ant 1.5?
- How do I make the Gmote server automatically run when my computer starts?