The following piece of code generates a java.net.ConnectException: Connection
refused: connect error :
URL url = new URL(http://localhost:8080/myapp/mypage.jsp;);
url.openStream();
It crashes with Tomcat 5.5.30 but it works with Tomcat 5.5.28.
The Tomcat server is started and the HTTP link
From: Sébastien PRUNIER [mailto:sebastien.prun...@gmail.com]
Subject: java.net.ConnectException when attempting to open URL via Java
code
The following piece of code generates a java.net.ConnectException:
Connection refused: connect error :
URL url = new URL(http://localhost:8080/myapp
for your help !
On Mon, Aug 23, 2010 at 3:14 PM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
From: Sébastien PRUNIER [mailto:sebastien.prun...@gmail.com]
Subject: java.net.ConnectException when attempting to open URL via Java
code
The following piece of code generates
Sébastien PRUNIER wrote:
JVM version : 1.6.0_20
Platform : Windows VISTA Pro / SP2
Does netstat show Tomcat listening on port 8080 : YES
Is localhost resolvable from inside the JVM ? : YES. Moreover, the same
error occurs with the IP address or the hostname instead of localhost.
What's in
When I run netstat -a, I can see the following line :
...
TCP[::1]:8080 PC-d-CE:64433 TIME_WAIT
...
What does it mean ?
On Mon, Aug 23, 2010 at 5:23 PM, Sébastien PRUNIER
sebastien.prun...@gmail.com wrote:
A)
1) you downloaded and installed Tomcat 5.5.28, from the
From: Sébastien PRUNIER [mailto:sebastien.prun...@gmail.com]
Subject: Re: java.net.ConnectException when attempting to open URL via
Java code
3) if it was the zip version, to which directory did you install it ?
- C:\developpement\tomcat\apache-tomcat-5.5.30
4) how do you start
From: Sébastien PRUNIER [mailto:sebastien.prun...@gmail.com]
Subject: Re: java.net.ConnectException when attempting to open URL via
Java code
When I run netstat -a, I can see the following line :
...
TCP[::1]:8080 PC-d-CE:64433 TIME_WAIT
...
What does it mean
From: Caldarale, Charles R
Subject: RE: java.net.ConnectException when attempting to open URL via
Java code
It means Tomcat is listening on IPv6, but not IPv4. I don't know why
this happens, but you can change your conf/server.xml to add an
address=0.0.0.0 attribute to the port 8080
-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Monday, August 23, 2010 10:34 AM
To: Tomcat Users List
Subject: RE: java.net.ConnectException when attempting to open URL via
Java code
From: Sébastien PRUNIER [mailto:sebastien.prun