Connection refused with Tomcat 7

前端 未结 2 440
有刺的猬
有刺的猬 2021-01-18 09:11

I have a Tomcat instance running on Jelastic and there are two deployed apps - for \'/foo\' context and for \'/bar\' context.

During handling request to \'/foo\' we

2条回答
  •  抹茶落季
    2021-01-18 09:40

    Connection refused definitely means network issue. One of the potential reason is that your application tries to establish connection using http header "host" value etc. and in general header "host" value does not contain 8080 port inside string -BUT- tomcat at Jelastic is running on port 8080, so you can either try connect to your second application forcibly specifying port 8080 or contact your support and ask them to set iptables rule that would redirect all requests (inside your tomcat container) from 80 to 8080 port.

提交回复
热议问题