New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2.0-beta-1 : "Invalid cache type '<not set>'" when starting Alfresco with enterprise profile #355

Closed
slanglois opened this Issue Feb 4, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@slanglois
Contributor

slanglois commented Feb 4, 2016

I generated the (attached) all-in-one project as explained in the Wiki:

mvn archetype:generate -DarchetypeCatalog=https://oss.sonatype.org/content/repositories/orgalfresco-1030/archetype-catalog.xml

Then, just by typing mvn clean install -Penterprise in the generated folder, the tests fail:

Running test.demoamp.test.DemoComponentTest
2016-02-04 16:18:12,314  WARN  [alfresco.util.RuntimeSystemPropertiesSetter] [main] Could not find alfresco-jmxrmi.password on classpath
 2016-02-04 16:18:12,599  INFO  [alfresco.repo.admin] [main] Using database URL 'jdbc:h2:D:\work\archetype\test/alf_data_dev/h2_data/alf_dev;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0' with user 'alfresco'.
 2016-02-04 16:18:12,951  INFO  [alfresco.repo.admin] [main] Connected to database H2 version 1.4.190 (2015-10-11)
 2016-02-04 16:18:18,142  WARN  [context.support.GenericApplicationContext] [main] Exception encountered during context initialization - cancelling refresh attempt
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeTableCache' defined in class path resource [alfresco/cache-context.xml]: Cannot resolve reference to bean 'tenantAdminService' while setting bean property 'tenantAdminService'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantAdminService' defined in URL [jar:file:/C:/Users/slanglois/.m2/repository/org/alfresco/alfresco-repository/5.1-EA-3/alfresco-repository-5.1-EA-3.jar!/alfresco/mt/mt-admin-context.xml]: Cannot resolve reference to bean 'dbNodeServiceImpl' while setting bean property 'nodeService'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'permissionServiceImpl' while setting bean property 'permissionService'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionServiceImpl' defined in class path resource [alfresco/public-services-security-context.xml]: Cannot resolve reference to bean 'authorityService' while setting bean property 'authorityService'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityService' defined in class path resource [alfresco/authority-services-context.xml]: Cannot resolve reference to bean 'personService' while setting bean property 'personService'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personService' defined in class path resource [alfresco/authentication-services-context.xml]: Cannot resolve reference to bean 'repoAdminService' while setting bean property 'repoAdminService';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoAdminService' defined in class path resource [alfresco/repo-admin-context.xml]: Cannot resolve reference to bean 'repoUsageComponent' while setting bean property 'repoUsageComponent'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoUsageComponent' defined in URL [jar:file:/C:/Users/slanglois/.m2/repository/org/alfresco/authorization/alfresco-authorised-users/5.1-SNAPSHOT/alfresco-authorised-users-5.1-SNAPSHOT.jar!/alfresco/enterprise/enterprise-usage-services-context.xml]: Cannot resolve reference to bean 'authorizationService' while setting bean property 'authorizationService'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationService' defined in URL [jar:file:/C:/Users/slanglois/.m2/repository/org/alfresco/authorization/alfresco-authorised-users/5.1-SNAPSHOT/alfresco-authorised-users-5.1-SNAPSHOT.jar!/alfresco/enterprise/authorization-service-context.xml]: Cannot resolve reference to bean 'authorizationDAO' while setting bean property 'authorizationDAO'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationDAO' defined in class path resource [alfresco/enterprise/authorization-ibatis-context.xml]: Cannot resolve reference to bean 'authorizationCache' while setting bean property 'authorizationCache'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationCache' defined in class path resource [alfresco/enterprise/authorization-ibatis-context.xml]: Cannot resolve reference to bean 'authorizationSharedCache' while setting bean property 'sharedCache'; 
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationSharedCache' defined in class path resource [alfresco/enterprise/authorization-ibatis-context.xml]: Instantiation of bean failed; 
nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public synchronized org.alfresco.repo.cache.SimpleCache org.alfresco.enterprise.repo.cluster.cache.ClusterAwareCacheFactory.createCache(java.lang.String)] threw exception; 
nested exception is java.lang.IllegalArgumentException: Invalid cache type '<not set>' for cache cache.authorizationCache

Here is the generated project:
aio22b1.zip

@gravitonian gravitonian self-assigned this Feb 4, 2016

@gravitonian gravitonian added this to the 2.2.0 milestone Feb 29, 2016

gravitonian pushed a commit that referenced this issue Feb 29, 2016

@gravitonian

This comment has been minimized.

Show comment
Hide comment
@gravitonian

gravitonian Feb 29, 2016

Contributor

Fixed

Contributor

gravitonian commented Feb 29, 2016

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment