Tomcat service issue
search cancel

Tomcat service issue

book

Article ID: 406411

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

 Steps to enable https on Smarts tomcat

Tomcat service is running but unable to launch below URL, it throws Site can't be reached error. 

https://<host:8443>/smarts-edaa/msa/<SAM_PRES_SERVICE>

Environment

Smarts 10.1.x / 24.3.x

Cause

Tomcat was not running on Port 8443, it was running on default port 8080

Resolution

Since tomcat service is running on port 8080, launch the URL using port 8080 instead of 8443. 

http://<host:8080>/smarts-edaa/msa/<SAM_PRES_SERVICE>

Additional Information

Additionally you can also configure the tomcat service to run on 8443 i.e. follow below steps to enable https on Smarts tomcat:

  • Take a backup of existing server.xml under /opt/InCharge/SAM/smarts/tomcat/conf
  • Uncomment the https connector configuration in server.xml
    <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
    maxThreads="150" SSLEnabled="true" scheme="https" secure="true" keystoreFile="/opt/InCharge/SAM/
    smarts/.keystore" keystorePass="xxxx"
    clientAuth="false" sslEnabledProtocols="TLSv1.2" />

Note: Make sure the keystore file and password is correct in the above configuration line. 

  • Then comment out the non-SSL connector used for http, to look like this:
    <!-- Define a non-SSL HTTP/1.1 Connector on the
    port specified during installation  -->
    <!--
    <Connector port="8080" 
    maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
    enableLookups="false" redirectPort="8443"
    acceptCount="100"
    debug="0" connectionTimeout="20000" 
    disableUploadTimeout="true" />
    --> 
  • Restart the tomcat service :
    sm_service stop <tomcat> 
    
    sm_service start <tomcat> 
  •  Launch the url https://<ip/hostname>:8443 to confirm if tomcat is running correctly on this port.