Using HTTPClient to connect to site on same server - getting Connection refused

612 views Asked by At

I have a tomcat 5.0 server running various applications on a Unix server. On this same server, I have a shell script that uses org.apache.commons.httpclient and connect to a URL on one of the applications. This has worked for years.

I have moved the applications to a Virtual Linux server and Tomcat 6.0. Now when I run the shell script, I get:

java.net.ConnectException: Connection refused

When I update the URL to an application on a different server, my shell scrip completes successfully.

Why can’t I run my shell script and access the website running on the same server? And what can I do to make this work?

0

There are 0 answers