jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Lenz <cml...@gmx.de>
Subject Re: Connection refused
Date Tue, 22 Apr 2003 10:41:08 GMT
Hi Kay,

"Connection refused" usually indicates that the server isn't running, or 
at least isn't listening to the host/port you're trying to connect to, 
which is what you specify as the sys-property cactus.contextURL.

-chris

kay.b.koeslag@accenture.com wrote:
> Hi,
> 
> I'm trying to get an ejb test up and running (I've followed the 
> example), and am getting Connection refused
> 
> 
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.148 sec
>     [junit] Testsuite: com.accenture.house.test.TestAll
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.148 sec
> 
>     [junit] Testcase: testLoginIncorrectUsername took 0.141 sec
>     [junit]     Caused an ERROR
>     [junit] Connection refused
>     [junit] java.net.ConnectException: Connection refused
>     [junit]     at java.net.PlainSocketImpl.socketConnect(Native Method)
>     [junit]     at 
> java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
>     [junit]     at 
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
>     [junit]     at 
> java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
>     [junit]     at java.net.Socket.<init>(Socket.java:268)
>     [junit]     at java.net.Socket.<init>(Socket.java:95)
>     [junit]     at 
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:286)
>     [junit]     at 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:318)
>     [junit]     at 
> org.apache.cactus.client.HttpClientConnectionHelper.dispatch24_connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAct.aj(1k):164)

> 
>     [junit]     at 
> org.apache.cactus.client.HttpClientConnectionHelper.around24_connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAsp.aj(1k):1236)

> 
>     [junit]     at 
> org.apache.cactus.client.HttpClientConnectionHelper.connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k06)

> 
>     [junit]     at 
> org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):186)

> 
>     [junit]     at 
> org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):109)

> 
>     [junit]     at 
> org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):1236)

> 
>     [junit]     at 
> org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):104)

> 
>     [junit]     at 
> org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestCase.java:260) 
> 
>     [junit]     at 
> org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133)
>     [junit]     at 
> org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195)
> 
>     [junit] Testcase: testLoginIncorrectUsername
> 
> Any ideas where I should look?
> 
> Thanks very much!
> Kay
> 
> PS: Thanks for your advice with running ant in -debug, Vincent ... 
> that's really helped get over the last few hurdles ...



Mime
View raw message