title: Tomcat 9 always gives Address already in use for http/https connectors
body: <p>We recently upgraded tomcat from version 7 to tomcat 9.x on Centos. When we start tomcat we are seeing the following error -
  org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP/1.1-8080]]
  Caused by: java.net.BindException: Address already in use</p>
  <p>Server.xml changes:
  Connector port=&quot;8060&quot; protocol=&quot;org.apache.coyote.http11.Http11Protocol&quot; redirectPort=&quot;8080&quot; proxyName=&quot;myproxy&quot; proxyPort=&quot;443&quot; scheme=&quot;https&quot; /&gt;
  
  Even though catalina.out displays this error, our application runs fine. We verified there is no other service running on port 8080 and when we switch back to tomcat 7 there is no error displayed in logs.
  We do have nginx as a reverse proxy in front of tomcat but it listens on port 80 and 443 and talks to tomcat9 on port 8060 (<a href="http://127.0.0.1:8060" rel="nofollow noreferrer">http://127.0.0.1:8060</a>).
  We have now spent full 2 days to resolve this issue and any help will be greatly appreciated.</p>
  <p>Sorry for being ignorant, what is the purpose of redirectPort in Connector? In the above case does it mean that nginx will talk to tomcat on port 8060 and tomcat will internally redirect the request to port 8080?</p>
  <p>Thanks in advance.</p>