UIM- Unified Reporter failed to start with security check error

book

Article ID: 196322

calendar_today

Updated On:

Products

NIMSOFT PROBES DX Infrastructure Management

Issue/Introduction

Unified reporter fails to start with j_security_check error

 

Cause

Can see below error in wasp log

Jul 24 09:26:49:413 ERROR [localhost-startStop-1, org.apache.catalina.core.ContainerBase.[wasp-engine].[localhost].[/jasperserver-pro]] listenerStart() Exception sending context initialized event to listener instance of class com.jaspersoft.ji.war.common.FusionConfigListener
Jul 24 09:26:49:413 ERROR [localhost-startStop-1, org.apache.catalina.core.ContainerBase.[wasp-engine].[localhost].[/jasperserver-pro]] org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to register bean definition with name 'reportJobsPersistenceHibernateService'

Offending resource: ServletContext resource [/WEB-INF/applicationContext-report-scheduling - Copy.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'reportJobsPersistenceHibernateService' defined in ServletContext resource [/WEB-INF/applicationContext-report-scheduling - Copy.xml]: Cannot register bean definition [Generic bean: class [com.jaspersoft.jasperserver.api.engine.scheduling.hibernate.HibernateReportJobsPersistenceService]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-report-scheduling - Copy.xml]] for bean 'reportJobsPersistenceHibernateService': There is already [Generic bean: class [com.jaspersoft.jasperserver.api.engine.scheduling.hibernate.HibernateReportJobsPersistenceService]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in ServletContext resource [/WEB-INF/applicationContext-report-scheduling.xml]] bound.
 at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
 at org.springframework.beans.factory.parsing.ReaderContext.error(ReaderContext.java:85)

Environment

Release : 9.0.2

Component : UIM - UNIFIED REPORTER

Resolution

Below steps resolved the issue

Observed in wasp log file there is a duplicate file in ../wasp/webapps/jasperserver-pro/WEB-INF folder with name "applicationContext-report-scheduling - Copy.xml". 
Removed this file(and other duplicate files if any)

Cleared the work folder under wasp 

Restarted the robot 

Additional Information

UIM - Unified Reporter did not send out the scheduled reports after upgrade

Attachments