My guess is this happens when Cargo didn't start Tomcat correctly. Does it
work when you run it from the command line (not through NetBeans)?

On Fri, Sep 18, 2009 at 1:31 PM, measwel <marek_karczew...@yahoo.com.au>wrote:

>
> Other tests run fine, but it fails on the webtest, stating that the
> connection is refused. Test data is present, I think the DB is right too.
> What could be wrong?
>
> Tests run: 70, Failures: 0, Errors: 0, Skipped: 0
>
> [dbunit:operation]
> [antrun:run]
> Executing tasks
>     [echo] Testing 'HW_STRUTS-1.0' with locale 'pl'
>
> Login:
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
> Error executing ant tasks
>
> Embedded error: The following error occurred while executing this line:
>
> /Users/marekkarczewski/NetBeansProjects/HW_STRUTS/src/test/resources/login.xml:1:
> Unexpected exception caught: java.net.ConnectException
> Connection refused
> ------------------------------------------------------------------------
> For more information, run Maven with the -e switch
> ------------------------------------------------------------------------
> Total time: 29 seconds
> Finished at: Fri Sep 18 21:21:43 CEST 2009
> Final Memory: 25M/45M
> ------------------------------------------------------------------------
>
> --
> View this message in context:
> http://www.nabble.com/webtests-fail-on-connection-refused-tp25514251s2369p25514251.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to