Spectrum OneClick WebApp Could Not Connect to Web Server
search cancel

Spectrum OneClick WebApp Could Not Connect to Web Server

book

Article ID: 252927

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

When running DX NetOps Spectrum  users may see the following error message when trying to launch the OneClick WebApp:

SPC-OCC-10251: Could not connect to Web server at http(s)://<HOSTNAME>:<PORT>

When reviewing the <SPECROOT>/webtomcat/bin/logs/webswing.log file, you may see the following error:

2024-01-12 13:17:19,952 ERROR [Webswing Process Handler] (SwingProcessImpl.java:218) [oneclickwebapp_anonym_b70ebaf1ee84_1705065432487] Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm:

2024-01-12 13:17:19,952 ERROR [Webswing Process Handler] (SwingProcessImpl.java:218) [oneclickwebapp_anonym_b70ebaf1ee84_1705065432487] at com.aprisma.util.net.http.HttpConnection.createSocket(HttpConnection.java:580)
2024-01-12 13:17:19,952 ERROR [Webswing Process Handler] (SwingProcessImpl.java:218) [oneclickwebapp_anonym_b70ebaf1ee84_1705065432487] ... 25 more
2024-01-12 13:17:19,952 ERROR [Webswing Process Handler] (SwingProcessImpl.java:218) [oneclickwebapp_anonym_b70ebaf1ee84_1705065432487] Caused by: java.security.UnrecoverableKeyException: Cannot recover key

 

Environment

Releases : 21.2.x - 23.3.x

Component: SPCOCK - OneClick

Resolution

The $SPECROOT/webtomcat/webswing/webswing.config file needs to be modified as follows:

Make a backup of the current $SPECROOT/webtomcat/webswing/webswing.config file

Remove the following entry:

-Dtomcat.server.xml=${SPECROOT}/tomcat/conf/server.xml

Add the following where <PASSWD> is the value of the keystorePass:

-Djavax.net.ssl.trustStore=${SPECROOT}/custom/keystore/cacerts -Djavax.net.ssl.trustStorePassword=<PASSWD>

Restart webtomcat