JavaReact icon indicating copy to clipboard operation
JavaReact copied to clipboard

java.net.Connect.Exception: Connection refused: connect

Open datatribe opened this issue 7 years ago • 0 comments

Starting out of the box I was getting an exception indicating a missing dependency, so I have added:

        <dependency>
		<groupId>org.apache.httpcomponents</groupId>
		<artifactId>httpclient</artifactId>
		<version>4.3.4</version>
	</dependency>

Now I do not get an exception when hitting the root URL, but all requested resources result in a WARNING from the jetty server.

[WARNING] /JavaReact/assets/vendor.js: java.net.ConnectException: Connection refused: connect [WARNING] /JavaReact/assets/app.js: java.net.ConnectException: Connection refused: connect [WARNING] /JavaReact/assets/app.css: java.net.ConnectException: Connection refused: connect

This typically points to a server not started, but the jetty server is clearly started. Other possibilities are client / server firewall issues, but this is all local.

I am running on Java 1.8, Windows 10 Enterprise, 64-bit. I can't say for certain this is an issue with the project, but guidance is appreciated.

Update: I attempted a work around for port 9090 by defining a firewall rule locally as loosely as possible, but the connection is still refused. Telnet to localhost:9090 produces the same.

I also thought Chrome's reported deprecation of http may be at fault and changed the dev_override_web.xml to serve the webpack servlet on https, but that dosen't seem to be the issue either.

datatribe avatar Oct 08 '18 16:10 datatribe