Webview cannot be logged into; while it can be done on Workstation using the same credentials

Document ID : KB000044421
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

While user can log into Workstation, user using the same credential could not log into Webview--it results in a blank page after accepting the login credentials.

Relevant Webview log error:

[WebView] Unable to establish connection with remote resource at http://<hostname>:8081/apm/appmap/private/configuration/static! 
java.net.ConnectException: Connection refused 
at java.net.PlainSocketImpl.socketConnect(Native Method)

 

Environment:

10.2 Webview

 

Cause:

The EM/Webview server has multiple NICs, and hence there are related DNS issues.

 

Resolution:

1.) The way it was when issue was reproduced: while tcp.host is set to IP address, rest.base is still set to the hostname of the server:
################################# 
# Enterprise Manager Locations and Names 

# ================ 
# Settings WebView uses to find the Enterprise Manager 

introscope.webview.enterprisemanager.tcp.host=<IP address of server> 
introscope.webview.enterprisemanager.tcp.port=5001 
introscope.webview.enterprisemanager.webserver.tcp.port=8081 

# URL that points to the root of the Enterprise Manager REST API 
introscope.webview.enterprisemanager.rest.base=http://<hostname>:8081/apm/appmap 

2.) What we have changed that solved the issue: set rest.base to also the IP address of the server
# URL that points to the root of the Enterprise Manager REST API 
introscope.webview.enterprisemanager.rest.base=http://<IP address of the server>:8081/apm/appmap 

3.) restart Webview after the change