CA Spectrum GIS View Does Not Show Device Pins/Location on the Google Map

Document ID : KB000074022
Last Modified Date : 16/03/2018
Show Technical Document Details
Issue:
The GIS View does not show device pins on the Google Map. I've referred to https://support.ca.com/us/knowledge-base-articles.TEC1086811.html, and have configured the Location attribute to a street address for the model added to the GCDevices global collection.  When I launch the GIS view, the pins do not show.
Cause:
There is a typo in the $Spectrum\tomcat\webapps\spectrum\console\gis-view.jsp which references localhost.
Resolution:
Edit the  $Spectrum\tomcat\webapps\spectrum\console\gis-view.jsp and change the String requestRestURL entry from this:

String requestRestURL ; 
String requestURL = request.getRequestURL().toString(); 
String servletPath = request.getServletPath(); 
String appPath = "http://localhost:8080/spectrum"; 
InputStream inputStream = null; 
Properties prop = null; 
try{ 
String ipAdressesFile=appPath+"/console/gisGC.config"; 
URL url = new URL(ipAdressesFile); 

To this:

String requestRestURL ; 
String requestURL = request.getRequestURL().toString(); 
String servletPath = request.getServletPath(); 
String appPath = requestURL.substring(0, requestURL.indexOf(servletPath)); 
InputStream inputStream = null; 
Properties prop = null; 
try{ 
String ipAdressesFile=appPath+"/console/gisGC.config"; 
URL url = new URL(ipAdressesFile); 

Stop and restart Tomcat.