Unable to add Spectrum as a Data Source in Performance Management when SSL is enabled
search cancel

Unable to add Spectrum as a Data Source in Performance Management when SSL is enabled

book

Article ID: 232990

calendar_today

Updated On:

Products

CA Spectrum DX NetOps CA Performance Management - Usage and Administration

Issue/Introduction

Unable to add Spectrum as a Data Source in Performance Management when SSL is enabled.
 
In the PCService.log file, we see the following error:

ERROR | qtp1392442180-29494 | 2022-01-20 08:02:02,425 | com.ca.im.portal.api.services.datasource.DataSourcePoll
| Received WebServiceException from version check for data source Spectrum Infrastructure Manager@name. CAUSE=org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType. Incoming portion of HTML stream:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<base href="https://<OneClick_Hostname>:8443/axis2/">
<title>Axis2 :: Internal server error</title>
<link href="axis2-web/css/axis-style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table summary="header table" style="width: 100%">
<tr>
<td align="left"><img src="axis2-web/images/asf-logo.gif" alt="Apache Software Foundation Logo"></td>
<td align="right"><img src="axis2-web/images/axis_l.jpg" alt="AXIS Logo"></td>
</tr>
</table>
<table summary="main content table" style="width: 100%">
<tr>
<td>
<h1>Internal server error</h1>
<br>
<br>
<br>
<br>
</td>
</tr>
<tr><td style="align: center"><a href="axis2-web/index.jsp">home</a></td></tr>
</table>
<hr>
<table summary="footer table" style="width: 100%">
<tr><td>
<table summary="embedded footer table">
<tr><td><hr></td></tr>
<tr>
<td style="align: center">Copyright &#169; 1999-2021, The Apache Software Foundation<br>Licensed under the <a
href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</td>
</tr>
</table>
</td>
<td>&nbsp;</td>
</tr>
</table>
</body>
</html>
. MESSAGE=Response was of unexpected text/html ContentType. Incoming portion of HTML stream:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

Also, if a user tries to access the following URL, they will recieve an internal service error:

https://<OneClick_Hostname>:8443/axis2/services/listServices
 

Environment

All supported DX NetOps Performance Management and Spectrum releases

Cause

These errors indicate that the Axis2 service did not deploy correctly on the Spectrum OneClick server.

Resolution

Ensure the following is configured in the <SPECROOT>tomcat/webapps/axis2/WEB-INF/conf/axis2.xml file:

<transportReceiver name="http"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8080</parameter>
</transportReceiver>

<transportReceiver name="https"
class="org.apache.axis2.transport.http.AxisServletListener">
<parameter name="port">8443</parameter>
</transportReceiver>

Also ensure the following file is present:

<SPECROOT>tomcat/webapps/axis2/META-INF/context.xml
 
If the context.xml is missing from that directory take the following steps before restarting the tomcat web server for the axis2.xml changes.
  1. Make a copy of the context.xml found in the <SPECROOT>/tomcat/webapps/spectrum/META-INF/ directory.
  2. Place the copy in the <SPECROOT>/tomcat/webapps/axis2/META-INF/ directory.
  3. Open the copy placed in the <SPECROOT>/tomcat/webapps/axis2/META-INF/ directory for editing.
    1. Find this line:
      • Context path="/spectrum" docBase="spectrum">
    2. Change it to:
      • <Context path="/axis2" docBase="spectrum">

If any changes are made, the Spectrum Tomcat Service needs to be restarted for the changes to take effect.