CABI JasperReports Server 6.4.3 installation with non-root user fails


Article ID: 142762


Updated On:


CA eHealth CA Spectrum


The customer is trying to install CABI JasperReports server without any root user rights, meaning without sudo and with a non-privileged user.

From the logs CABusinessIntelligence_install log, we can see the following error:


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/home/cabiuser/install/buildomatic/conf_source/iePro/applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Permission denied




Often, this error occurs because EHCache is trying to create a lock file called .ehcache-diskstore.lock in two folders, <tmpfolder>/main and <tmpfolder>/adhocCache, and the user executing js-export doesn't have write permissions to one or both folders. 


RedHat 7

CABI JasperReports server: 6.4.3


First, check the file:

By default, it should contain the following properties:

property name="tempFolder" value="/temp"/
Check your system and see if /temp exists. If not, create a new folder named /temp.

Alternatively, if /tmp exists, you can change the configuration file using the value of /tmp.


Check the permissions of the two folders to ensure the end user has write access, and run chmod if they do not.