Error installing Jasper CE 6.1.1 when not as root user

0
Hi,
When trying to install CE 6.1.1 not as the root user the installation fails. Using the bundled postgres and tomcat.
 
It installs fine as root, but any attempt to install as a normal user fails, showing this near the end of the install process:
 
Warning: Problem running post-install step. Installation may not complete correctly
Error running /home/jasper/jasperreports-server-cp-6.1.1/apache-ant/bin/ant import-minimal-ce:
BUILD FAILED
/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/bin/import-export.xml:279:
The following error occurred while executing this line:
/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/bin/import-export.xml:158:
Java returned: 255
 
The install log has entries like the following:
 
[java] Resource name: applicationContext-virtual-data-source-query-service.xml
 
[java] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'executionOwnerVoter': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityContextProvider': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityContextProviderTarget' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'userAuthorityService' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userAuthorityService' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'profileAttributeServiceTarget' while setting bean property 'profileAttributeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profileAttributeServiceTarget' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateRepositoryService' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'hibernateRepositoryListeners' while setting bean property 'repositoryListeners'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateRepositoryListeners' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'schedulingReportDeleteListener' while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulingReportDeleteListener' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-report-scheduling.xml]: Cannot resolve reference to bean 'reportSchedulingService' while setting bean property 'schedulingService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reportSchedulingService' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-report-scheduling.xml]: Cannot resolve reference to bean 'reportScheduler' while setting bean property 'scheduler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reportScheduler' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-report-scheduling.xml]: Cannot resolve reference to bean 'quartzScheduler' while setting bean property 'scheduler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzScheduler' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-report-scheduling.xml]: Cannot resolve reference to bean 'engineService' while setting bean property 'schedulerContextAsMap' with key [TypedStringValue: value [engineService], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'engineService' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'CascadeQueryManipulator' while setting bean property 'queryManipulator'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CascadeQueryManipulator' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-cascade.xml]: Cannot resolve reference to bean 'coreFilterResolver' while setting bean property 'filterResolver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'coreFilterResolver' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-cascade.xml]: Cannot resolve reference to bean 'builtInParameterProviders' while setting bean property 'builtInParameterProviders'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'builtInParameterProviders' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot create inner bean 'com.jaspersoft.jasperserver.api.engine.jasperreports.util.UserProfileBuiltInParameterProvider#770d3326' of type [com.jaspersoft.jasperserver.api.engine.jasperreports.util.UserProfileBuiltInParameterProvider] while setting constructor argument with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.jaspersoft.jasperserver.api.engine.jasperreports.util.UserProfileBuiltInParameterProvider#770d3326' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Cannot resolve reference to bean 'profileAttributeService' while setting bean property 'profileAttributeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profileAttributeService': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'profileAttributesServiceServiceMethodSecurityInterceptor' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-security.xml]: Cannot resolve reference to bean 'getProfileAttributesAfterInvocationProviderManager' while setting bean property 'afterInvocationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getProfileAttributesAfterInvocationProviderManager' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-security.xml]: Cannot resolve reference to bean 'aclAttributeUserReadVoter' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aclAttributeUserReadVoter': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'internalAclServiceCE' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-security.xml]: Cannot resolve reference to bean 'ehCacheAclService' while setting bean property 'aclServices' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehCacheAclService' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-security.xml]: Cannot resolve reference to bean 'ehCacheBasedJasperServerAclCache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ehCacheBasedJasperServerAclCache' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext-security.xml]: Cannot resolve reference to bean 'aclCache' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aclCache' defined in file [/home/jasper/jasperreports-server-cp-6.1.1/buildomatic/conf_source/ieCe/applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: java.io.IOException: Permission denied
 
[java]     at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:307)
[java]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1148)
[java]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
[java]     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
[java]     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
 
Can anyone provide any ideas as to what the problem might be and how to fix it...
Thanks.
 
keith_5's picture
43
Joined: Nov 1 2015 - 12:02am
Last seen: 3 years 9 months ago

1 Answer:

4

Problem resolved!

The issue stems from first having installed it as root, and then uninstalling and re-installing as non root.

The installation process seems to create some entries in /tmp (such as /tmp/main) and these remain after the install. They end up owned by root after that first install, so the second install as non root does not have permission to use these.

Cleaning out /tmp and trying the install again worked.

Be really helpful if when it gets a 'permission denied' or similar when installing it actually said what the file and path was... Would of helped to track this down a lot faster.

 

keith_5's picture
43
Joined: Nov 1 2015 - 12:02am
Last seen: 3 years 9 months ago
Feedback
randomness