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) Thanks in advance 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 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. > > JVM version? Platform? Does netstat show Tomcat listening on port 8080? > Is localhost resolvable from inside the JVM? What's in the Tomcat logs > when you enable the AccessLogValve in conf/server.xml? > > Odds are the request is never even making it to Tomcat. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Cordialement, Sébastien.