search cancel

Generate URL links not working google weather map

book

Article ID: 230432

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

GenerateURL for google weather map app, it stopped working, when I generate a new one the user gets this error  xxx.domain.com refused to connect.

 

Environment

Dx NetOps Performance Management 21.2.x

Resolution

  1. Backup and edit /opt/CA/PerformanceCenter/PC/webapps/pc/WEB-INF/web.xml
  2. Look for the following section
    1.     <filter-mapping>
              <filter-name>StaticContentAuthenticationFilter</filter-name>
              <url-pattern>/mibs/*</url-pattern>
              <url-pattern>*.bmp</url-pattern>
              <url-pattern>*.css</url-pattern>
              <url-pattern>*.js</url-pattern>
              <url-pattern>*.swf</url-pattern>
              <url-pattern>*.gif</url-pattern>
              <url-pattern>*.png</url-pattern>
              <url-pattern>*.jpg</url-pattern>
              <url-pattern>*.jsp</url-pattern>
              <url-pattern>*.ttf</url-pattern>
              <url-pattern>*.svg</url-pattern>
              <url-pattern>*.ico</url-pattern>
          </filter-mapping>

  3. Use the mibs line to create an entry for apps. It should look like the following
    1.     <filter-mapping>
              <filter-name>StaticContentAuthenticationFilter</filter-name>
              <url-pattern>/mibs/*</url-pattern>
              <url-pattern>/apps/*</url-pattern>
              <url-pattern>*.bmp</url-pattern>
              <url-pattern>*.css</url-pattern>
              <url-pattern>*.js</url-pattern>
              <url-pattern>*.swf</url-pattern>
              <url-pattern>*.gif</url-pattern>
              <url-pattern>*.png</url-pattern>
              <url-pattern>*.jpg</url-pattern>
              <url-pattern>*.jsp</url-pattern>
              <url-pattern>*.ttf</url-pattern>
              <url-pattern>*.svg</url-pattern>
              <url-pattern>*.ico</url-pattern>
          </filter-mapping>
  4. Save that file
  5. Backup and edit /opt/CA/PerformanceCenter/PC/webapps/pc/META-INF/spring/bean.xml
  6. Look for the following block
    1.     <bean id="skipAuthenticationUri" class="com.ca.im.portal.util.AuthenticationUrl">
              <property name="urlPatterns">
                  <set>
                      <value>/pc/center</value>
                      <value>/pc/center/.*</value>
                      <value>/pc/odata</value>
                      <value>/pc/odata/.*</value>
                      <value>/pc/mibs/.*</value>
                      <value>/pc/view/.*</value>
                      <value>/pc/repository/.*</value>
                      <value>[^\?]+\.(bmp|css|js|swf|gif|png|jpg|jsp|ttf|svg|ico)(\?.*)?</value>
                  </set>
              </property>
          </bean>
  7. Using the mibs line, add a line for apps so that it looks like the following
    1.     <bean id="skipAuthenticationUri" class="com.ca.im.portal.util.AuthenticationUrl">
              <property name="urlPatterns">
                  <set>
                      <value>/pc/center</value>
                      <value>/pc/center/.*</value>
                      <value>/pc/odata</value>
                      <value>/pc/odata/.*</value>
                      <value>/pc/mibs/.*</value>
                      <value>/pc/apps/.*</value>
                      <value>/pc/view/.*</value>
                      <value>/pc/repository/.*</value>
                      <value>[^\?]+\.(bmp|css|js|swf|gif|png|jpg|jsp|ttf|svg|ico)(\?.*)?</value>
                  </set>
              </property>
          </bean>
  8. Save the file
  9. Bounce the console service with the following command
    1. service caperfcenter_console  restart
  10. At this point, generate URL for you app should work.