AnsweredAssumed Answered

Error: Failed to create store root..

Question asked by pcano on Dec 22, 2008
Latest reply on Jan 7, 2009 by pjcaracuel_2349
Hola, acabo de instalar Alfresco Enterprise 3.0 sobre SLES 10 mediante Alfresco WAR pero no consigo arrancarlo..

Arranco tomcat pero al poco tiempo se para y no consigo acceder a la web. En el fichero de log de tomcat encuentro siempre este error:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileContentStore' 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: Failed to create store root: ./alf_data/contentstore
Caused by: 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: Failed to create store root: ./alf_data/contentstore
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Failed to create store root: ./alf_data/contentstore
        at org.alfresco.repo.content.filestore.FileContentStore.<init>(FileContentStore.java:92)
        at org.alfresco.repo.content.filestore.FileContentStore.<init>(FileContentStore.java:79)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85)
        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:186)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:799)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:717)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:384)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)

Y en alfresco.log muestra lo siguiente:

10:25:05,951 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luceneFullTextSearchIndexer' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'indexerAndSearcherFactory' while setting bean property 'indexerAndSearcherFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'admLuceneIndexerAndSearcherFactory' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admLuceneIndexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'mlAwareNodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mlAwareNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'mtAwareNodeService' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mtAwareNodeService': FactoryBean threw exception on object creation; 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 'dbNodeServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeServiceImpl' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'avmNodeService' while setting bean property 'avmNodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'avmService' while setting bean property 'avmService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmService' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'avmServiceBase' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmServiceBase' defined in class path resource [alfresco/public-services-context.xml]: Cannot resolve reference to bean 'avmRepository' while setting bean property 'avmRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'avmRepository' defined in class path resource [alfresco/avm-services-context.xml]: Cannot resolve reference to bean 'fileContentStore' while setting bean property 'contentStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fileContentStore' 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: Failed to create store root: ./alf_data/contentstore

Parece que es la configuración de alguno de los ficheros, pero no se cual. Yo simplemente he borrado la extensión .sample de custom-repository-context.xml, custom-hibernate-dialect.properties y custom-repository.properties, parametrizando el último de ellos con los datos apropiados. El dir.root lo he apuntado a /opt/alfresco/alf_data que ya venía la descomprimir el tar pero no se si hay que crear un directorio nuevo, ¿podrías echarme una mano?

muchas gracias

Outcomes