Erreur Context initialization failed

cancel
Showing results for 
Search instead for 
Did you mean: 
versus68
Member II

Erreur Context initialization failed

Bonjour,

J'ai essayé de suivre pas à pas le doc d'installation de la dernière version d'alfresco mais apparemment cela ne fonctionne pas très bien pour moi, j'ai du manqué qqch.

Je suis sous CentOS, une variante de RedHat.

J'ai modifié :
- le script de lancement pour les variables d'environnement
- le fichier alfresco-global.properties
- le fichier custom-repository.properties

Voici le message d'erreur :
08:30:02,221 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Closing org.alfresco.config.JBossEnabledWebApplicationContext@85a30c: display name [Root WebApplicationContext]; startup date [Fri Sep 18 08:13:01 CEST 2009]; root of context hierarchy
08:30:35,993 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 [/extend/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(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
08:30:41,382 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework
08:30:42,018 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Refreshing org.alfresco.config.JBossEnabledWebApplicationContext@58431c: display name [Root WebApplicationContext]; startup date [Fri Sep 18 08:30:42 CEST 2009]; root of context hierarchy
08:30:42,437 INFO  [org.alfresco.config.JBossEnabledWebApplicationContext] Bean factory for application context [org.alfresco.config.JBossEnabledWebApplicationContext@58431c]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1a6ac39

Modification de alfresco-global.properties :
###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#————-
dir.root=/extend/Alfresco/alf_data

#
# Sample database connection properties
#————-
db.name=alfresco
db.username=alfresco
db.password=alfresco
db.host=localhost
db.port=3306

#
# External locations
#————-
ooo.exe=soffice
img.root=./ImageMagick
swf.exe=./bin/pdf2swf

#
# MySQL connection
#————-
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost:3306/alfresco
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

Modification de  custom-repository.properties :
###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#
dir.root=/extend/Alfresco/alf_data

#
# Sample database connection properties
#
db.username=alfresco
db.password=alfresco
db.pool.initial=10
db.pool.max=100

#
# Activate index tracking and recovery
#
#index.tracking.cronExpression=0/5 * * * * ?
#index.recovery.mode=AUTO

#
# Property to control whether schema updates are performed automatically.
# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
# there are also auto-generated update scripts that will need to be executed.  After
# upgrading to a new version, this can be disabled.
#
#db.schema.update=true

#
# Derby connection
#
#db.driver=org.apache.derby.jdbc.EmbeddedDriver
#db.url=jdbc:derby:/srv/alfresco/alf_data/derby_data/alfresco;create=true

#
# HSQL connection
#
#db.driver=org.hsqldb.jdbcDriver
#db.url=jdbc:hsqldb:file:alf_data/hsql_data/alfresco;ifexists=true;shutdown=true;

#
# MySQL connection (This is default and requires mysql-connector-java-5.0.3-bin.jar, which ships with the Alfresco server)
#
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco

#
# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
#
#db.driver=org.postgresql.Driver
#db.url=jdbc:postgresql://localhost:5432/alfresco

Merci d'avance au personne qui se penche sur mon cas.
1 Reply
eweller
Member II

Re: Erreur Context initialization failed

Selon l'erreur de ta log c'est dans le fichier wcm-bootstrap-context.xml, a la variable bstractPropertyBackedBean qui le probleme se pose - Peux tu vérifier que tu as dans ce fichier :

   <!–  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>