Unable to start Jasper services with Error : java.io.IOException: Cannot bind to URL [rmi://localhost:10990/jasperserver]
search cancel

Unable to start Jasper services with Error : java.io.IOException: Cannot bind to URL [rmi://localhost:10990/jasperserver]

book

Article ID: 236453

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Spectrum integrated with Jasper 6.4.3.  On the Jasper server, the services don't start up. It tries to start and stops immediately with the following error being generated in the Jasperserver.log:

2022-02-01 21:50:55,414 ERROR ContextLoader,localhost-startStop-1:331 - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jasperJMXServerConnector' defined in ServletContext resource [/WEB-INF/applicationContext-diagnostic.xml]: Invoc

ation of init method failed; nested exception is java.io.IOException: Cannot bind to URL [rmi://localhost:10990/jasperserver]: javax.naming.ServiceUnavailableException [Root exception is java.rmi.Conn

ectException: Connection refused to host: localhost; nested exception is: 
...

Environment

DX NetOps CABI JasperServer 6.4.3 or later

Cause

Issue is that the local server is defined as localhost in the JasperServer server.xml file:

<CABI_INSTALL_DIR>/SharedComponents/CA Business Intelligence/apache-tomcat/conf/server.xml

Where:

    <Engine defaultHost="localhost" name="Catalina">

      <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true">

However, in the OS ~/etc/hosts file, localhost is not defined, so DNS resolution fails.

 

Resolution

Ensure that localhost is configured in the OS ~/etc/hosts file. For example:

127.0.0.1   localhost localhost.<DOMAIN>