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

2010-08-23 Thread Sébastien PRUNIER
Thanks a lot for your help, it works properly now !! (I added address="0.0.0.0" in the server.xml) On Mon, Aug 23, 2010 at 5:31 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Sébastien PRUNIER [mailto:sebastien.prun...@gmai

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

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

2010-08-23 Thread Sébastien PRUNIER
04 TCP192.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 wrote: > Sébastien PRUNIER wrote: > >> JVM version : 1.6.

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

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

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

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