AnsweredAssumed Answered

Alfresco Application Context

Question asked by teamkrusty on Feb 2, 2006
Latest reply on Feb 6, 2006 by davidc
I can get everything fine to work within eclipse, but when i try running examples fromt he command line with an explicitly set classpath I get this error.  I have gotten around this by changing the order of my classpath in eclipse, but I'd like to know what causes this error :

Exception in thread "main" org.springframework.beans.factory.BeanCreationExcepti
on: Error creating bean with name 'descriptorComponent' defined in class path re
source [alfresco/application-context.xml]: Can't resolve reference to bean 'syst
emBootstrap' while setting property 'systemBootstrap'; nested exception is org.s
pringframework.beans.factory.BeanCreationException: Error creating bean with nam
e 'nodeIndexer' defined in class path resource [alfresco/node-services-context.x
ml]: Can't resolve reference to bean 'policyComponent' while setting property 'p
olicyComponent'; nested exception is org.springframework.beans.factory.BeanCreat
ionException: Error creating bean with name 'policyComponent' defined in class p
ath resource [alfresco/application-context.xml]: Can't resolve reference to bean
'dictionaryService' while setting property 'constructor argument with index 0';
nested exception is org.springframework.beans.factory.BeanCreationException: Er
ror creating bean with name 'extension.dictionaryBootstrap' defined in class pat
h resource [alfresco/extension/extension-context.xml]: Initialization of bean fa
iled; nested exception is org.alfresco.service.cmr.dictionary.DictionaryExceptio
n: Could not find bootstrap model alfresco/extension/csmonitorModel.xml
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'nodeIndexer' defined in class path resource [alfresco/node-services-cont
ext.xml]: Can't resolve reference to bean 'policyComponent' while setting proper
ty 'policyComponent'; nested exception is org.springframework.beans.factory.Bean
CreationException: Error creating bean with name 'policyComponent' defined in cl
ass path resource [alfresco/application-context.xml]: Can't resolve reference to
bean 'dictionaryService' while setting property 'constructor argument with inde
x 0'; nested exception is org.springframework.beans.factory.BeanCreationExceptio
n: Error creating bean with name 'extension.dictionaryBootstrap' defined in clas
s path resource [alfresco/extension/extension-context.xml]: Initialization of be
an failed; nested exception is org.alfresco.service.cmr.dictionary.DictionaryExc
eption: Could not find bootstrap model alfresco/extension/csmonitorModel.xml
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'policyComponent' defined in class path resource [alfresco/application-co
ntext.xml]: Can't resolve reference to bean 'dictionaryService' while setting pr
operty 'constructor argument with index 0'; nested exception is org.springframew
ork.beans.factory.BeanCreationException: Error creating bean with name 'extensio
n.dictionaryBootstrap' defined in class path resource [alfresco/extension/extens
ion-context.xml]: Initialization of bean failed; nested exception is org.alfresc
o.service.cmr.dictionary.DictionaryException: Could not find bootstrap model alf
resco/extension/csmonitorModel.xml
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'extension.dictionaryBootstrap' defined in class path resource [alfresco/
extension/extension-context.xml]: Initialization of bean failed; nested exceptio
n is org.alfresco.service.cmr.dictionary.DictionaryException: Could not find boo
tstrap model alfresco/extension/csmonitorModel.xml
org.alfresco.service.cmr.dictionary.DictionaryException: Could not find bootstra
p model alfresco/extension/csmonitorModel.xml
        at org.alfresco.repo.dictionary.DictionaryBootstrap.bootstrap(Dictionary
Bootstrap.java:85)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:971)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:941)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:334)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:146)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:281)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:146)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:176)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.resolveConstructorArguments(AbstractAutowireCapableBeanFactory.java:591)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:497)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:298)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:146)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:176)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:316)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:146)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:281)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:146)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveReference(BeanDefinitionValueResolver.java:176)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.createBean(AbstractAutowireCapableBeanFactory.java:316)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:146)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.
getBeansOfType(DefaultListableBeanFactory.java:205)
        at org.springframework.context.support.AbstractApplicationContext.getBea
nsOfType(AbstractApplicationContext.java:583)
        at org.springframework.context.support.AbstractApplicationContext.regist
erListeners(AbstractApplicationContext.java:466)
        at org.springframework.context.support.AbstractApplicationContext.refres
h(AbstractApplicationContext.java:307)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:80)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:65)
        at org.springframework.context.support.ClassPathXmlApplicationContext.<i
nit>(ClassPathXmlApplicationContext.java:56)
        at com.csmonitor.repository.alfresco.CsMonitorViewCompanyHome.main(CsMon
itorViewCompanyHome.java:23)

Outcomes