@Override protected FailureAnalysis analyze(Throwable rootFailure, ConnectorStartFailedException cause) { return new FailureAnalysis( "The Tomcat connector configured to listen on port " + cause.getPort() + " failed to start. The port may already be in use or the" + " connector may be misconfigured.", "Verify the connector's configuration, identify and stop any process " + "that's listening on port " + cause.getPort() + ", or configure this application to listen on another port.", cause); }
private void checkConnectorHasStarted(Connector connector) { if (LifecycleState.FAILED.equals(connector.getState())) { throw new ConnectorStartFailedException(connector.getPort()); } }