book
Article ID: 38936
calendar_today
Updated On:
Issue/Introduction
HTTP 404 Error is received when accessing JasperSoft Server.
Upon reviewing the tomcat logs, many exceptions are seen.
These exceptions prevent JasperServer from deploying to Tomcat.
Cause
Exceptions seen may look like this:
ERROR ContextLoader,localhost-startStop-1:331 - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.adhocEngineService' defined in ServletContext resource [/WEB-INF/applicationContext-adhoc.xml]: Cannot resolve reference to bean 'dataSetCache' while setting bean property 'dataSetCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSetCache' defined in ServletContext resource [/WEB-INF/applicationContext-datarator.xml]: Cannot resolve reference to bean 'adhocCache' while setting bean property 'adhocCache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adhocCache' defined in ServletContext resource [/WEB-INF/applicationContext-datarator.xml]: Cannot resolve reference to bean 'adhocCacheManager' while setting bean property 'cacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adhocCacheManager' defined in ServletContext resource [/WEB-INF/applicationContext-datarator.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.config.InvalidConfigurationException: There are 6 errors in your configuration:
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AdHocEhCacheMBeanRegistration' defined in ServletContext resource [/WEB-INF/applicationContext-diagnostic-pro.xml]: Cannot resolve reference to bean 'adhocCacheManager' while setting bean property 'arguments' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'adhocCacheManager' defined in ServletContext resource [/WEB-INF/applicationContext-datarator.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.config.InvalidConfigurationException: There are 6 errors in your configuration:
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
* CacheManager configuration: You've assigned more memory to the on-heap than the VM can sustain, please adjust your -Xmx setting accordingly
Resolution
Make sure the documentation for installation and post-installation has been followed fully here:https://docops.ca.com/display/CABI610/Installing%20CABISpecifically the memory section of configuring Tomcat. It should look like this:
<Please see attached file for image>
Additional Information
If using Tomcat 8 pleases note that these two settings are no longer supported and thus will cause startup errors/problems:
-XX:PermSize=32m
-XX:MaxPermSize=512m
Because of this, these are not required if you are using Tomcat 8. Tomcat 7 they should still be used.