A 404 error is received when accessing a freshly installed JasperSoft Server

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

Issue: 

 

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.

 

Environment:  

 

Windows 2012

Windows 2008

 

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 postinstallation has been followed fully here:

 

https://docops.ca.com/display/CABI610/Installing%20CABI

 

Specifically the memory section of configuring Tomcat.  It should look like this:

SNAG_Program-0020.png

 

Additional Information:

 

If using Tomcat8 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 Tomcat8.  Tomcat 7 they should still be used.