CABI Jaspersoft services fail to remain running after XML file edits required for CA Performance Management integration.

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

CABI services fail to stay running after making required edits to applicationContext-multiTenancy.xml file for CA Performance Management integration.

This is the key error related to the applicationContext-multiTenancy.xml file. The error can be seen in the cabusinessintelligencetomcat-stdout.log file. The error states: 

 

2017-12-15 13:46:16,336 ERROR ContextLoader,localhost-startStop-1:331 - Context initialization failed 

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 410 in XML document from ServletContext resource [/WEB-INF/applicationContext-multiTenancy.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 410; columnNumber: 9; cvc-complex-type.2.3: Element 'bean' cannot have character [children], because the type's content type is element-only. 

... 

Caused by: org.xml.sax.SAXParseException; lineNumber: 410; columnNumber: 9; cvc-complex-type.2.3: Element 'bean' cannot have character [children], because the type's content type is element-only. 

 

Environment:
All CAPM releases supporting CA BI Jaspersoft integrations
Cause:

File contained unexpected Ctrl-A characters in the XML file causing the errors. This is the section in the file involved in the problem:

 

<bean id="mtDaoAuthenticationProvider" class="com.ca.bicoe.cajasperserver.preauth.sso.authentication.CADaoAuthenticationProvider">

     <!-- jdbcDaoImpl -->

     <!-- <property name="userDetailsService"><ref bean="inMemoryDaoImpl"/></property> -->

     <property name="profileAttributeService"><ref bean="profileAttributeServiceTarget"/></property>

     <property name="profileatrribs" value="1"/>

     <property name="userDetailsService"><ref bean="${bean.internalUserAuthorityService}"/></property>

     <property name="MTUserDetailsService"><ref bean="${bean.internalUserAuthorityService}"/></property>

     <property name="tenantService" ref="${bean.hibernateTenantService}"/>

     <property name="passwordEncoder"><ref bean="passwordEncoder"/></property>

</bean>

 

The unexpected characters were present in the space that appears empty at the start of the lines between the <bean> statements.

Resolution:

Edit the file; remove the spacing and then add tab/space characters to match XML formatting in other default file sections.

 

Once done the services remain started and the rest of the integration can now be completed.

Additional Information:

https://docops.ca.com/ca-performance-management/3-2/en/integrating/integrate-ca-business-intelligence/install-ca-business-intelligence-reports-and-dashboards