AnsweredAssumed Answered

Error Context initialization failed

Question asked by vincentdelaporte on Sep 17, 2010
Latest reply on Sep 20, 2010 by vincentdelaporte
Hello,

I installed Alfresco under Linux SLES 11 with oracle 11gR2.
I don't find the solution for this problem : Context initialization failed

16:37:32,994 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path
resource [alfresco/repository.properties]
16:37:32,997 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path
resource [alfresco/domain/transaction.properties]
16:37:32,997 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/appl
/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/tests/alfresco-global.properties]
16:37:32,997 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/appl
/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/test/alfresco-global.properties]
16:37:32,997 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/appl
/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/org_alfresco_module_dod5015/alfresco-glob
al.properties]
16:37:32,997 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/
appl/alfresco/tomcat/shared/classes/alfresco-global.properties]
16:37:33,049 INFO  [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from cla
ss path resource [alfresco/alfresco-shared.properties]
16:37:36,853 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'RepoServerMgmt' def
ined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'transac
tionService' while setting bean property 'transactionService'; nested exception is org.springframework.bean
s.factory.BeanCreationException: Error creating bean with name 'transactionService' defined in class path r
esource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'transactionManager' while s
etting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreati
onException: Error creating bean with name 'transactionManager' defined in class path resource [alfresco/hi
bernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessio
nFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of
init method failed; nested exception is java.lang.NoClassDefFoundError: oracle/dms/console/DMSConsole
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefin
itionValueResolver.java:328)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(Be
anDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1305)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(Abstra
ctAutowireCapableBeanFactory.java:1067)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Abstra
ctAutowireCapableBeanFactory.java:511)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Abstract
AutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.ja
va:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingl
etonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java
:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:1
89)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(De
faultListableBeanFactory.java:557)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(A
bstractApplicationContext.java:842)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContex
t.java:416)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261
)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.j
ava:47)
        at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
        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:546)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
        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:519)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        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:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transact
ionService' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference t
o bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.sprin
gframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined
in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory'
while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCre
ationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hib
ernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError:
oracle/dms/console/DMSConsole
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefin
itionValueResolver.java:328)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(Be
anDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1305)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(Abstra
ctAutowireCapableBeanFactory.java:1067)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Abstra
ctAutowireCapableBeanFactory.java:511)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Abstract
AutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.ja
va:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingl
etonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java
:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:1
89)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefin
itionValueResolver.java:322)
        … 40 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transact
ionManager' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to be
an 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.b
eans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path re
source [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.No
ClassDefFoundError: oracle/dms/console/DMSConsole
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefin
itionValueResolver.java:328)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(Be
anDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1305)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(Abstra
ctAutowireCapableBeanFactory.java:1067)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Abstra
ctAutowireCapableBeanFactory.java:511)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Abstract
AutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.ja
va:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingl
etonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java
:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:1
89)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefin
itionValueResolver.java:322)
        … 50 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionF
actory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed;
nested exception is java.lang.NoClassDefFoundError: oracle/dms/console/DMSConsole
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abst
ractAutowireCapableBeanFactory.java:1401)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(Abstra
ctAutowireCapableBeanFactory.java:512)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(Abstract
AutowireCapableBeanFactory.java:450)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.ja
va:290)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingl
etonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java
:287)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:1
89)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefin
itionValueResolver.java:322)
        … 60 more
Caused by: java.lang.NoClassDefFoundError: oracle/dms/console/DMSConsole
        at oracle.jdbc.driver.DMSFactory.<clinit>(DMSFactory.java:44)
        at oracle.jdbc.driver.PhysicalConnection.createDMSSensors(PhysicalConnection.java:4202)
        at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:628)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:217)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:28)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:537)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38
)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
        at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
        at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
        at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSour
ceConnectionProvider.java:81)
        at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
        at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2073)
        at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1298)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactory
Bean.java:855)
        at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFacto
ryBean.java:774)
        at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSession
FactoryBean.java:211)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(A
bstractAutowireCapableBeanFactory.java:1460)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abst
ractAutowireCapableBeanFactory.java:1398)
        … 67 more
Caused by: java.lang.ClassNotFoundException: oracle.dms.console.DMSConsole
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        … 87 more
16:37:43,739 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 268 Web Scrip
ts (+0 failed), 276 URLs
16:37:43,742 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Des
cription Documents (+0 failed)
16:37:43,742 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Desc
ription Documents (+0 failed)
16:37:43,993 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring
Surf Container Web Script Container (in 2255.7388ms)
16:37:44,140 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered templat
e processor freemarker for extension ftl
16:37:44,280 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script pr
ocessor javascript for extension js
16:37:44,405 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered templat
e processor freemarker for extension ftl
16:37:44,409 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script pr
ocessor javascript for extension js
16:37:44,523 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered templat
e processor freemarker for extension ftl
16:37:44,527 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script pr
ocessor javascript for extension js

I think it 's just a configuration problem but i don't find it

Thank you for your help
Best regards
Vincent

Outcomes