Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 378
  • Last Modified:

ConnectException: Connection refused

In my httpunit test I have the following two lines:

WebConversation wc = new WebConversation();
WebResponse response = wc.getResponse("http://localhost:8080/myPage.html");

I'm getting a connection refused error. Any idea what might be going on?
0
salmasri
Asked:
salmasri
4 Solutions
 
CEHJCommented:
Is the server running?
0
 
hoomanvCommented:
have you built anything to pass the test ?
0
 
objectsCommented:
there is nothing listening on port 8080 on the maching that you are running the test on
0
 
ctamrakarCommented:
is the server running on your own machine (localhost ? )
try http://localhost:8080/myPage.html on your browser and see i u can see mypage.html

or try telnet !
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now