Tomcat connection refused
843833Sep 14 2001 — edited Sep 14 2001Hi-
I'm really puzzled over this, and I could use some help.
I have a standalone instance of Tomcat up and running on NT4.0 SP6. I can run all of the servlet examples and JSP examples with no problem.
But, I have a third party "100% Pure Java" servlet that throws this exception:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at sun.net.NetworkClient.doConnect(NetworkClient.java:50)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:331)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:517)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:277)
at sun.net.www.http.HttpClient.New(HttpClient.java:289)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:408)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:455)
at com.mapinfo.mapxtreme.client.a8.c([DashoPro-V1.2-120198])
at com.mapinfo.mapxtreme.client.MapXtremeImageRenderer.render([DashoPro-V1.2-120198])
at com.mapinfo.mapj.MapJ.render([DashoPro-V1.2-120198])
at HTMLEmbeddedMapServlet.sendImageResponse(HTMLEmbeddedMapServlet.java:542)
at HTMLEmbeddedMapServlet.service(HTMLEmbeddedMapServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
The server and the applications are configured for "localhost:8080," and that is the URL from which I've been attempting to access the servlet. I've also tried using the IP address in the browser's address bar, and the machine name-- it doesn't make any difference.
I suspect it may be something to do with socket permissions, but if so, I don't know how to address this. The vendor has given up, but I'm a little more stubborn.
Any ideas? I'd really appreciate some tips at this point.