IssueAfter installing TIBCO JasperReports® Server 7.2 successfully on Tomcat 9.0.29, the following errors were encountered upon starting the server: | [toc] |
2019-12-05 13:09:17,945 ERROR ContextLoader,main:350 - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantImportMergeUtil' defined in ServletContext resource [/WEB-INF/applicationContext-export-import-web-pro.xml]: Cannot resolve reference to bean 'multiTenancyExportConfiguration' while setting bean property 'tenantModuleConfiguration'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'multiTenancyExportConfiguration' defined in ServletContext resource [/WEB-INF/applicationContext-export-import-web-pro.xml]: Cannot resolve reference to bean 'tenantSerializer' while setting bean property 'tenantSerializer'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantSerializer' defined in ServletContext resource [/WEB-INF/applicationContext-export-import-web.xml]: Invocation of init method failed; nested exception is com.jaspersoft.jasperserver.api.JSExceptionWrapper: A mapping for class com.jaspersoft.jasperserver.export.modules.mt.beans.TenantBean already exists ... Caused by: org.exolab.castor.mapping.MappingException: A mapping for class com.jaspersoft.jasperserver.export.modules.mt.beans.TenantBean already exists at org.exolab.castor.mapping.loader.AbstractMappingLoader2.addDescriptor(AbstractMappingLoader2.java:96) at org.exolab.castor.mapping.loader.AbstractMappingLoader.createClassDescriptors(AbstractMappingLoader.java:276) at org.exolab.castor.xml.XMLMappingLoader.loadMapping(XMLMappingLoader.java:152) at org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshaller.java:165) at org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshaller.java:131) at org.exolab.castor.xml.XMLContext.addMapping(XMLContext.java:82) at com.jaspersoft.jasperserver.export.io.CastorSerializer.createCastorMapping(CastorSerializer.java:83) ... 74 more
Solution:
The error was due to deploying TIBCO JasperReports® 7.2 server on the release version Tomcat 9.0.29. It is uncertain why this specific minor release is generating such issues but according to the TIBCO Jaspersoft® Platform Support guide, TIBCO JasperReports® Server 7.2 certifies the following Tomcat releases:
- 8.5.0 - 8.5.39
- 9.0.1 - 9.0.17
The solution is to revert to a certified version of Tomcat, for example 9.0.17 and installing TIBCO JasperReports 7.2 server on that version.
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now