tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sébastien PRUNIER <sebastien.prun...@gmail.com>
Subject Re: java.net.ConnectException when attempting to open URL via Java code
Date Mon, 23 Aug 2010 15:26:51 GMT
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.prunier@gmail.com> wrote:

> 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:\developpement\tomcat\apache-tomcat-5.5.28
>
>
> 4) how do you start it ?
> -> startup.bat
>
>
> 5) after starting it, in a command window, do :
> netstat -anop tcp
> and paste the result here
>
> C:\>netstat -anop tcp
>
> Connexions actives
>
>   Proto  Adresse locale         Adresse distante       État
>   TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
> 1016
>   TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
>   TCP    0.0.0.0:990            0.0.0.0:0              LISTENING
> 4524
>   TCP    0.0.0.0:3306           0.0.0.0:0              LISTENING
> 2184
>   TCP    0.0.0.0:5432           0.0.0.0:0              LISTENING
> 2580
>   TCP    0.0.0.0:8001           0.0.0.0:0              LISTENING       4
>   TCP    0.0.0.0:8009           0.0.0.0:0              LISTENING
> 7124
>   TCP    0.0.0.0:8080           0.0.0.0:0              LISTENING
> 7124
>   TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING       668
>   TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING
> 1164
>   TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING
> 1256
>   TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING       728
>   TCP    0.0.0.0:49160          0.0.0.0:0              LISTENING       716
>   TCP    127.0.0.1:4664         0.0.0.0:0              LISTENING
> 2780
>   TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING
> 4572
>   TCP    127.0.0.1:5037         127.0.0.1:64312        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64313        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64314        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64315        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64316        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64317        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64318        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64319        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64320        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64321        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64322        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64323        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64324        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64325        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64326        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64327        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64330        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64331        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64332        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64333        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64334        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64335        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64336        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64337        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64338        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64339        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64340        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64341        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64342        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64343        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64344        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64345        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64346        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64347        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64348        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64349        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64352        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64353        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64354        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64355        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64356        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64357        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64358        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64359        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64360        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64361        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64362        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64363        TIME_WAIT       0
>   TCP    127.0.0.1:5432         127.0.0.1:64328        ESTABLISHED
> 2580
>   TCP    127.0.0.1:5432         127.0.0.1:64329        ESTABLISHED
> 2580
>   TCP    127.0.0.1:5679         0.0.0.0:0              LISTENING
> 4524
>   TCP    127.0.0.1:7438         0.0.0.0:0              LISTENING
> 4524
>   TCP    127.0.0.1:8005         0.0.0.0:0              LISTENING
> 7124
>   TCP    127.0.0.1:8700         0.0.0.0:0              LISTENING
> 2412
>   TCP    127.0.0.1:12025        0.0.0.0:0              LISTENING
> 3596
>   TCP    127.0.0.1:12080        0.0.0.0:0              LISTENING
> 3704
>   TCP    127.0.0.1:12080        127.0.0.1:64185        ESTABLISHED
> 3704
>   TCP    127.0.0.1:12080        127.0.0.1:64350        TIME_WAIT       0
>   TCP    127.0.0.1:12110        0.0.0.0:0              LISTENING
> 3596
>   TCP    127.0.0.1:12119        0.0.0.0:0              LISTENING
> 3596
>   TCP    127.0.0.1:12143        0.0.0.0:0              LISTENING
> 3596
>   TCP    127.0.0.1:49209        127.0.0.1:49210        ESTABLISHED
> 1240
>   TCP    127.0.0.1:49210        127.0.0.1:49209        ESTABLISHED
> 1240
>   TCP    127.0.0.1:49213        127.0.0.1:49214        ESTABLISHED
> 1240
>   TCP    127.0.0.1:49214        127.0.0.1:49213        ESTABLISHED
> 1240
>   TCP    127.0.0.1:59567        127.0.0.1:59568        ESTABLISHED
> 2412
>   TCP    127.0.0.1:59568        127.0.0.1:59567        ESTABLISHED
> 2412
>   TCP    127.0.0.1:64185        127.0.0.1:12080        ESTABLISHED
> 1240
>   TCP    127.0.0.1:64319        127.0.0.1:5037         TIME_WAIT       0
>   TCP    127.0.0.1:64328        127.0.0.1:5432         ESTABLISHED
> 7124
>   TCP    127.0.0.1:64329        127.0.0.1:5432         ESTABLISHED
> 7124
>   TCP    192.168.1.54:139       0.0.0.0:0              LISTENING       4
>   TCP    192.168.1.54:49282     81.80.172.130:443      ESTABLISHED
> 2360
>   TCP    192.168.1.54:64186     66.220.145.39:80       ESTABLISHED
> 3704
>   TCP    192.168.1.54:64207     209.85.227.18:443      TIME_WAIT       0
>   TCP    192.168.1.54:64208     209.85.227.18:443      ESTABLISHED
> 1240
>   TCP    192.168.1.54:64228     209.85.227.18:443      ESTABLISHED
> 1240
>   TCP    192.168.1.54:64351     174.129.243.85:80      TIME_WAIT       0
>
>
> B)
> 1) you downloaded and installed Tomcat 5.5.30, 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) 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 ?
> -> startup.bat
>
>
> 5) after starting it, in a command window, do :
> netstat -anop tcp
> and paste the result here
>
> C:\>netstat -anop tcp
>
> Connexions actives
>
>   Proto  Adresse locale         Adresse distante       État
>   TCP    0.0.0.0:135            0.0.0.0:0              LISTENING
> 1016
>   TCP    0.0.0.0:445            0.0.0.0:0              LISTENING       4
>   TCP    0.0.0.0:990            0.0.0.0:0              LISTENING
> 4524
>   TCP    0.0.0.0:3306           0.0.0.0:0              LISTENING
> 2184
>   TCP    0.0.0.0:5432           0.0.0.0:0              LISTENING
> 2580
>   TCP    0.0.0.0:8001           0.0.0.0:0              LISTENING       4
>   TCP    0.0.0.0:49152          0.0.0.0:0              LISTENING       668
>   TCP    0.0.0.0:49153          0.0.0.0:0              LISTENING
> 1164
>   TCP    0.0.0.0:49154          0.0.0.0:0              LISTENING
> 1256
>   TCP    0.0.0.0:49155          0.0.0.0:0              LISTENING       728
>   TCP    0.0.0.0:49160          0.0.0.0:0              LISTENING       716
>   TCP    127.0.0.1:4664         0.0.0.0:0              LISTENING
> 2780
>   TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING
> 4572
>   TCP    127.0.0.1:5037         127.0.0.1:64404        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64405        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64406        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64407        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64410        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64411        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64412        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64413        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64414        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64415        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64416        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64417        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64418        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64419        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64420        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64421        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64423        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64424        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64425        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64426        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64427        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64428        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64429        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64430        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64431        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64432        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64434        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64436        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64437        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64438        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64439        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64440        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64441        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64442        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64443        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64444        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64445        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64446        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64447        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64448        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64449        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64450        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64451        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64452        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64453        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64454        TIME_WAIT       0
>   TCP    127.0.0.1:5037         127.0.0.1:64455        TIME_WAIT       0
>   TCP    127.0.0.1:5432         127.0.0.1:64394        ESTABLISHED
> 2580
>   TCP    127.0.0.1:5432         127.0.0.1:64399        ESTABLISHED
> 2580
>   TCP    127.0.0.1:5679         0.0.0.0:0              LISTENING
> 4524
>   TCP    127.0.0.1:7438         0.0.0.0:0              LISTENING
> 4524
>   TCP    127.0.0.1:8005         0.0.0.0:0              LISTENING
> 7376
>   TCP    127.0.0.1:8700         0.0.0.0:0              LISTENING
> 2412
>   TCP    127.0.0.1:12025        0.0.0.0:0              LISTENING
> 3596
>   TCP    127.0.0.1:12080        0.0.0.0:0              LISTENING
> 3704
>   TCP    127.0.0.1:12080        127.0.0.1:64185        ESTABLISHED
> 3704
>   TCP    127.0.0.1:12080        127.0.0.1:64408        ESTABLISHED
> 3704
>   TCP    127.0.0.1:12110        0.0.0.0:0              LISTENING
> 3596
>   TCP    127.0.0.1:12119        0.0.0.0:0              LISTENING
> 3596
>   TCP    127.0.0.1:12143        0.0.0.0:0              LISTENING
> 3596
>   TCP    127.0.0.1:49209        127.0.0.1:49210        ESTABLISHED
> 1240
>   TCP    127.0.0.1:49210        127.0.0.1:49209        ESTABLISHED
> 1240
>   TCP    127.0.0.1:49213        127.0.0.1:49214        ESTABLISHED
> 1240
>   TCP    127.0.0.1:49214        127.0.0.1:49213        ESTABLISHED
> 1240
>   TCP    127.0.0.1:59567        127.0.0.1:59568        ESTABLISHED
> 2412
>   TCP    127.0.0.1:59568        127.0.0.1:59567        ESTABLISHED
> 2412
>   TCP    127.0.0.1:64185        127.0.0.1:12080        ESTABLISHED
> 1240
>   TCP    127.0.0.1:64394        127.0.0.1:5432         ESTABLISHED
> 7376
>   TCP    127.0.0.1:64399        127.0.0.1:5432         ESTABLISHED
> 7376
>   TCP    127.0.0.1:64407        127.0.0.1:5037         TIME_WAIT       0
>   TCP    127.0.0.1:64408        127.0.0.1:12080        ESTABLISHED
> 1240
>   TCP    127.0.0.1:64418        127.0.0.1:5037         TIME_WAIT       0
>   TCP    127.0.0.1:64435        127.0.0.1:5037         TIME_WAIT       0
>   TCP    192.168.1.54:139       0.0.0.0:0              LISTENING       4
>   TCP    192.168.1.54:49282     81.80.172.130:443      ESTABLISHED
> 2360
>   TCP    192.168.1.54:64186     66.220.145.39:80       ESTABLISHED
> 3704
>   TCP    192.168.1.54:64208     209.85.227.18:443      TIME_WAIT       0
>   TCP    192.168.1.54:64228     209.85.227.18:443      ESTABLISHED
> 1240
>   TCP    192.168.1.54:64396     69.63.181.42:80        TIME_WAIT       0
>   TCP    192.168.1.54:64409     69.63.190.22:80        ESTABLISHED
> 3704
>   TCP    192.168.1.54:64422     209.85.227.83:443      ESTABLISHED
> 1240
>
>
> C) your client is a java program separate from Tomcat, yes ?
> -> YES, I run an Eclipse program
>
>
> On Mon, Aug 23, 2010 at 4:57 PM, André Warnier <aw@ice-sa.com> wrote:
>
>> 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 Tomcat logs when you enable the AccessLogValve in
>>> conf/server.xml : it is empty, no access log.
>>>
>>> I found this amazing because it works with 5.5.28 version and not with
>>> 5.5.30. I did not do any specific configuration (on the both tomcat
>>> installations), the installations are clean (I installed them today)
>>>
>>
>> So let's summarise (and tell me where I'm wrong) :
>>
>> A)
>> 1) you downloaded and installed Tomcat 5.5.28, from the Tomcat website at
>> http://tomcat.apache.org
>>
>> 2) which one of the Tomcat packages did you download and install ? the zip
>> version, or the installer .exe version ?
>>
>> 3) to which directory did you install it ?
>>
>> 4) how do you start it ?
>>
>> 5) after starting it, in a command window, do :
>> netstat -anop tcp
>> and paste the result here
>>
>> B)
>> 1) you downloaded and installed Tomcat 5.5.30, from the Tomcat website at
>> http://tomcat.apache.org
>>
>> 2) which one of the Tomcat packages did you download and install ? the zip
>> version, or the installer .exe version ?
>>
>> 3) if it was the zip version, to which directory did you install it ?
>>
>> 4) how do you start it ?
>>
>> 5) after starting it, in a command window, do :
>> netstat -anop tcp
>> and paste the result here
>>
>> C) your client is a java program separate from Tomcat, yes ?
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>
> --
> Cordialement,
> Sébastien.
>



-- 
Cordialement,
Sébastien.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message