• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 390
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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