cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco not starting... context initalization failed

jonjo
Champ in-the-making
Champ in-the-making
Hi everybody,
I'm having issues to install Alfresco on my CentOS server.
Whenever I try to start it using ./alf_start.sh , it writes "context initalization failed" into my catalina.out.
Attached is the full Alresco.log and catalina.out
Catalina.out:

[—@— logs]$ cat catalina.out
CompilerOracle: exclude org/apache/lucene/index/IndexReader$1.doBody
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger.mergeIndexes
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger.mergeDeletions
Jul 8, 2009 9:49:08 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 8, 2009 9:49:08 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 992 ms
Jul 8, 2009 9:49:08 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 8, 2009 9:49:08 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jul 8, 2009 9:49:11 PM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
21:49:22,105  ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'wcm_deployment_receiver' defined in file [/opt/Alfresco/tomcat/shared/classes/alfresco/extension/wcm-bootstrap-context.xml]: Could not resolve parent bean definition 'abstractPropertyBackedBean'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPropertyBackedBean' is defined
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPropertyBackedBean' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:356)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:973)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:930)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:166)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:447)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 8, 2009 9:49:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 8, 2009 9:49:22 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
Jul 8, 2009 9:49:25 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive mobile.war
21:49:27,020  INFO  [alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@14ade37: display name [Root WebApplicationContext]; startup date [Wed Jul 08 21:49:27 CEST 2009]; root of context hierarchy
21:49:27,528  INFO  [alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@14ade37]: org.springframework.beans.factory.support.DefaultListableBeanFactory@19c86c5
21:49:30,241  INFO  [web.scripts.DeclarativeRegistry] Registered 24 Web Scripts (+0 failed), 26 URLs
21:49:30,273  INFO  [web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 471.9504ms)
21:49:30,540  INFO  [web.scripts.DeclarativeRegistry] Registered 42 Web Scripts (+0 failed), 44 URLs
21:49:30,574  INFO  [web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 292.45984ms)
21:49:30,680  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
Jul 8, 2009 9:49:30 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive studio.war
21:49:35,298  INFO  [web.scripts.DeclarativeRegistry] Registered 67 Web Scripts (+0 failed), 71 URLs
21:49:35,301  INFO  [web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 673.3131ms)
21:50:36,920  INFO  [web.scripts.DeclarativeRegistry] Registered 101 Web Scripts (+0 failed), 105 URLs
21:50:36,920  INFO  [web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 61588.766ms)
21:50:37,162  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
Jul 8, 2009 9:50:37 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
21:50:42,672  INFO  [web.site.FrameworkHelper] Successfully Initialized Web Framework
Jul 8, 2009 9:50:43 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 8, 2009 9:50:43 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 94778 ms

Alfresco.log:

21:49:22,105 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'wcm_deployment_receiver' defined in file [/opt/Alfresco/tomcat/shared/classes/alfresco/extension/wcm-bootstrap-context.xml]: Could not resolve parent bean definition 'abstractPropertyBackedBean'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPropertyBackedBean' is defined
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'abstractPropertyBackedBean' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:356)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:973)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:930)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:916)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:166)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:447)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:334)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:516)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
21:49:27,020 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@14ade37: display name [Root WebApplicationContext]; startup date [Wed Jul 08 21:49:27 CEST 2009]; root of context hierarchy
21:49:27,528 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@14ade37]: org.springframework.beans.factory.support.DefaultListableBeanFactory@19c86c5
21:49:30,241 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 24 Web Scripts (+0 failed), 26 URLs
21:49:30,273 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 471.9504ms)
21:49:30,540 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 42 Web Scripts (+0 failed), 44 URLs
21:49:30,574 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 292.45984ms)
21:49:30,680 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
21:49:35,298 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 67 Web Scripts (+0 failed), 71 URLs
21:49:35,301 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 673.3131ms)
21:50:36,920 INFO  [org.alfresco.web.scripts.DeclarativeRegistry] Registered 101 Web Scripts (+0 failed), 105 URLs
21:50:36,920 INFO  [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised WebFramework Web Script Container (in 61588.766ms)
21:50:37,162 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
21:50:42,672 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
4 REPLIES 4

olivertwood
Champ in-the-making
Champ in-the-making
I have the exact same problem.
I downloaded and installed Alfresco Community Edition 3.2 and installed it with WCM.  The error message above about the missing abstractPropertyBackedBean is shown at start-up and I can't access any of Alfresco's screens.

I tried to frig the wcm-bootstrap-context file since that is where the abstractPropertyBackedBean is referred to, but that didn't help.

It seems, from Google, that the bean, were it to exist, might refer to org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean, but I've searched through all the jar files and files and can't find reference to either.

I'm at a total loss.  Any help truly appreeciated

versus68
Champ in-the-making
Champ in-the-making
I have the exact same problem too.

Have you fixed the problem since you've post yours message ?

Thanks Smiley Happy

mrogers
Star Contributor
Star Contributor
Your wcm-bootstrap may be out of line with the code.

Can you post your wcm-bootstrap-context.xml.
And confirm which version of Alfresco you are using.

versus68
Champ in-the-making
Champ in-the-making
Thanks for your interest !

Here, my wcm-bootstrap-context.xml :

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<!– This file enables Alfresco WCM it should be placed in shared/classes/extension –>

<beans>

    <!–  Patch in the WCM folders –>
    <bean id="patch.wcmFolders" class="org.alfresco.repo.admin.patch.impl.WCMFoldersPatch" parent="basePatch" >
        <property name="id"><value>patch.wcmFolders</value></property>
        <property name="description"><value>patch.wcmFolders.description</value></property>
        <property name="fixesFromSchema"><value>0</value></property>
        <property name="fixesToSchema"><value>${version.schema}</value></property>
        <property name="targetSchema"><value>10000</value></property>
        <!– helper beans for execution –>
        <property name="messageSource">
            <ref bean="bootstrapSpacesMessageSource" />
        </property>
        <property name="importerBootstrap">
            <ref bean="spacesBootstrap" />
        </property>
    </bean>

   < ! - -  Bootstrap the WCM Deployment Receiver Subsystem - - >
   <bean id="wcm_deployment_receiver"
      class="org.alfresco.repo.management.subsystems.ChildApplicationContextFactory"
      parent="abstractPropertyBackedBean">
      <property name="autoStart">
         <value>true</value>
      </property>
   </bean>

</beans>

I think I don't did modification in this file.