Re: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Sébastien PRUNIER
l.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 it ? > > -> sta

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Jeffrey Janner
> -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 > > &

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Caldarale, Charles R
> 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="

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Caldarale, Charles R
> 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_W

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Caldarale, Charles R
> 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 >

Re: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Sébastien PRUNIER
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

Re: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Sébastien PRUNIER
A) 1) you downloaded and installed Tomcat 5.5.28, from the Tomcat website at http://tomcat.apache.org -> YES 2) which one of the Tomcat packages did you download and install ? the zip version, or the installer .exe version ? -> ZIP version 3) to which directory did you install it ? -> C:\developp

Re: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread André Warnier
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 the

Re: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Sébastien PRUNIER
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 the Tomcat logs when you enabl

RE: java.net.ConnectException when attempting to open URL via Java code

2010-08-23 Thread Caldarale, Charles R
> 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:80