@Override
protected void startInternal() throws LifecycleException {
+ // Validate settings before starting
+ if (getPort() < 1) {
+ throw new LifecycleException(sm.getString(
+ "coyoteConnector.invalidPort", Integer.valueOf(getPort())));
+ }
+
setState(LifecycleState.STARTING);
try {
# CoyoteConnector
#
coyoteConnector.cannotRegisterProtocol=Cannot register MBean for the Protocol
+coyoteConnector.invalidPort=The connector cannot start since the specified port value of [{0}] is invalid
coyoteConnector.protocolHandlerDestroyFailed=Protocol handler destroy failed
coyoteConnector.protocolHandlerInitializationFailed=Protocol handler initialization failed
coyoteConnector.protocolHandlerInstantiationFailed=Protocol handler instantiation failed
${NSD_GetText} $CtlTomcatAdminRoles $TomcatAdminRoles
${EndIf}
+ ${If} $TomcatPortShutdown == ""
+ MessageBox MB_ICONEXCLAMATION|MB_OK 'The shutdown port may not be empty'
+ Abort "Config not right"
+ Goto exit
+ ${EndIf}
+
+ ${If} $TomcatPortHttp == ""
+ MessageBox MB_ICONEXCLAMATION|MB_OK 'The HTTP port may not be empty'
+ Abort "Config not right"
+ Goto exit
+ ${EndIf}
+
+ ${If} $TomcatPortAjp == ""
+ MessageBox MB_ICONEXCLAMATION|MB_OK 'The AJP port may not be empty'
+ Abort "Config not right"
+ Goto exit
+ ${EndIf}
+
${If} $TomcatServiceName == ""
MessageBox MB_ICONEXCLAMATION|MB_OK 'The Service Name may not be empty'
Abort "Config not right"
Correctly handle a connectionTimeout value of -1 (no timeout) for the
HTTP NIO and AJP NIO connectors. (markt)
</fix>
+ <fix>
+ <bug>51503</bug>: Add additional validation that prevents a connector
+ from starting if it does not have a port > 0. (markt)
+ </fix>
+ </changelog>
+ </subsection>
+ <subsection>
+ <changelog>
+ <fix>
+ <bug>51503</bug>: Add additional validation to Windows installer that
+ ensure that the shutdown port, HTTP port and AJP port are all specified
+ during the install process. (markt)
+ </fix>
</changelog>
</subsection>
</section>