After a Spectrum upgrade, the Webapp stopped working with the following error observed in the log:
SwingProcessImpl.java:372) [oneclickwebapp_anonym_fad1d200e1a8_1626138595995] ERROR: Failed to connect websocket to server [wss://<HOSTNAME>:8080/spectrum/oneclickwebapp/async/app-bin?instanceId=oneclickwebapp_anonym_1626138595995&sessionPoolId=default-pool&reconnect=false]! -> [Ljava.lang.Object;@ba8d91c | 2021-07-13 11:09:57,905 INFO [Webswing Process Handler] (SwingProcessImpl.java:372) [oneclickwebapp_anonym__1626138595995] ERROR: Exiting application because it could not connect to server -> jakarta.websocket.DeploymentException: Connection failed.
DX NetOps Spectrum all currently supported releases
This is caused by a SSLHandshakeException.
In the above instance, checking the keystoreFile field in the server.xml file of both Tomcat and webTomcat shows they are the same but the truststore path in webswing.properties had the wrong certificate path and wrong password. So, the custom certificates are not matching.
The keystoreFile attribute specifies the path to the Java KeyStore (JKS) file that contains:
webswing.properties file to be the same as in the $SPECROOT/tomcat/conf/server.xml file.webswing.properties is:$SPECROOT/webtomcat/webswing/webswing.properties