java - Connection refused with Tomcat 7 -


i have tomcat instance running on jelastic , there 2 deployed apps - '/foo' context , '/bar' context.

during handling request '/foo' http request '/bar' (for authorization) , there exception here - connectexception: connectionrefused.

if connect '/bar' through browser or code running on local pc works perfectly. if connect server (during handling request '/foo') host located in different place work expected. looks tomcat somehow filter incoming connections same host. know that?

a "connection refused" message means unable open network connection @ transport level. means service trying talk not listening new connections on specific ip , port number used in connection attempt.

check:

  1. that request being refused using correct ip , port number.
  2. that tomcat service configured listen on ip , port.

bear in mind system may have multiple ip addresses, , need listen on each 1 wish use. bear in mind "local host" typically different ip address.

then if neither of above problem:

  1. if there possibility of network level or local firewalling blocking traffic, check that.
  2. if possibility of "strangeness" due complicated virtual networking, check that.

it looks tomcat somehow filter incoming connections same host.

tomcat doesn't "filter" that. quite possible haven't configured tomcat listen requests. check "server.xml" file see if have configured correctly.


fwiw - don't think tomcat7 csrf filter. according documentation, return http response. in fact, can't see how inside receiving tomcat generate "connection refused" state means other not listening connections in first place.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -