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

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

book

Article ID: 38936

calendar_today

Updated On:

Products

CA Spectrum DX NetOps CA Service Desk Manager

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.

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

TechDocs : DX NetOps JasperServer : Installing CA Business Intelligence

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

 

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.