Tomcat is running on the Spectrum OneClick system but users are unable to log into OneClick after a restart of tomcat.
The $SPECROOT/tomcat/logs/catalina.out (Linux) or stdout.log (Windows) show errors similar to the following:
ProtocolHandler ["http-nio-8080"]
03-Nov-2020 05:04:13.316 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Protocol handler initialization failed
Caused by: java.net.BindException: Address already in use
ProtocolHandler ["https-jsse-nio-8443"]
03-Nov-2020 05:04:13.320 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Failed to initialize component [Connector[HTTP/1.1-8443]]
org.apache.catalina.LifecycleException: Protocol handler initialization failed
Caused by: java.net.BindException: Address already in use
When running a "netstat -an | grep 8080" or "netstat -an | grep 8443" the output does not report either port being used.
Release : Any
Component : SPCOCK - Spectrum OneClick
This can occur on a tomcat restart if the http/https ports are not closed completely after shutting tomcat down and then restarting tomcat.
After shutting down tomcat, run netstat to verify the http and https ports are down before starting tomcat again
Monitor the catalina.out (Linux) or stdout.log (Windows) file for successful binding to the http and https ports.