cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco CE 5.0.a from WAR install: Error creating bean with name 'authorityBridgeTableCache'

bktormey
Champ in-the-making
Champ in-the-making
Hello Everyone,

I've installed the Alfreco CE 5.0.a from WAR onto existing Tomcat & Postgresql (Fedora 20)

The start-up fails at ERROR after completing the repo.admin steps:

12:00:45,351 INFO  [org.alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbcSmiley Tongueostgresql:alfresco' with user 'alfresco'.
12:00:45,598 INFO  [org.alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 9.3.5
12:00:52,511 ERROR [org.springframework.web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
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 'authorityBridgeDAO' while setting bean property 'authorityBridgeDAO';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeDAO' defined in class path resource [alfresco/authority-services-context.xml]: Cannot resolve reference to bean 'nodeDAO' while setting bean property 'nodeDAO';

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityBridgeDAO' defined in class path resource [alfresco/authority-services-context.xml]: Cannot resolve reference to bean 'nodeDAO' while setting bean property 'nodeDAO';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDAO.org.hibernate.dialect.Dialect' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'contentDataDAO' while setting bean property 'contentDataDAO';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'contentDataDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'eagerContentStoreCleaner' while setting bean property 'contentStoreCleaner';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eagerContentStoreCleaner' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListeners' while setting bean property 'listeners';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListeners' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentBackupListener' while setting constructor argument with key [0];
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentBackupListener' defined in class path resource [alfresco/content-services-context.xml]: Cannot resolve reference to bean 'deletedContentStore' while setting bean property 'store';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deletedContentStore' defined in class path resource [alfresco/content-services-context.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.alfresco.repo.content.filestore.FileContentStore]: Constructor threw exception;
nested exception is org.alfresco.service.cmr.repository.ContentIOException: 07100000 Failed to create store root: /var/alfresco/alf_data/contentstore.deleted

My sense is that I may be missing some Hibernate configuration files by doing the WAR install.  I searched my installation from the alfresco root context, and then in the "shared" and "lib" directories, but couldn't find the xml files mentioned.

The uncommented lines in alfresco-global.properties are:
dir.root=/var/alfresco/alf_data
db.username=alfresco
db.password=alfresco
db.schema.update=true
db.driver=org.postgresql.Driver
db.url=jdbcSmiley Tongueostgresql:alfresco

alfresco user owns /var/alfresco/alf_data.
Permissions have been granted to alfresco on alfresco database.
There are no objects in the alfresco database, and there are no files in/under /var/alfresco/alf_data.

Any help is appreciated,

Bob
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
It's probably a permissions problem.   Nothing to do with hibernate which is not used in 5.0


The important bit of the exception is:

Failed to create store root.

bktormey
Champ in-the-making
Champ in-the-making
Thank you for your help, mrogers.  I had created alf_data with alfresco ownership rather than tomcat.  Changing the owner to tomcat got me further along.

Now I have run into the "Keystores are invalid" problem.

21:33:56,010 ERROR [org.springframework.web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 07110001 Keystores are invalid

Caused by: org.alfresco.error.AlfrescoRuntimeException: 07110000 Failed to create key: metadata
in key store:
   Location: /var/alfresco/alf_data/keystore/keystore
   Provider: null
   Type:     JCEKS
   at org.alfresco.encryption.AlfrescoKeyStoreImpl.createKey(AlfrescoKeyStoreImpl.java:644)
   at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:890)
   at org.alfresco.encryption.AlfrescoKeyStoreImpl.validateKeys(AlfrescoKeyStoreImpl.java:187)
   at org.alfresco.encryption.KeyStoreChecker.validateKeyStores(KeyStoreChecker.java:47)
   at org.alfresco.encryption.EncryptionChecker$1.execute(EncryptionChecker.java:66)
   … 27 more
Caused by: java.lang.NullPointerException

That NULL looks dooming.  Do I need to install a provider?  I've run into comments about needing to install solr.  Is that the answer?  Is there good documentation for installing it?

Thanks,

Bob

xodaix
Champ in-the-making
Champ in-the-making
Hi,
i have this issue as well

the code in alfresco-global.properties
was :    dir.root=D:\alfresco-examples\tomcat\bin\alf_data

i change it to

dir.root=D:\\alfresco-examples\\tomcat\\bin\\alf_data

and everything working fine

xodaix
Champ in-the-making
Champ in-the-making
also we must note this one

index.subsystem.name=solr4
dir.keystore=${dir.root}\\keystore

the above configuration will fix this error
org.alfresco.error.AlfrescoRuntimeException: 03070000 Keystores are invalid




Caused by: org.alfresco.encryption.MissingKeyException: Key metadata is missing from keystore D:\Alfresco\data/keystore/keystore