> 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

Reply via email to