tory.BeanCreationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • uP-3.0 uses spring-ldap version 1.2.1, however, the person-directory-1.0.1.pom depends on version 1.1.2. I got the following error when trying to configure "uPortalLdapAttributeSource" in personDirectoryContext.xml: [java] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'portletDefinitionRegistry' defined in class path resource [properties/contexts/portletContainerContext.xml]: Cannot resolve refer ence to bean 'optionalContainerServices' while setting bean property 'optionalCo ntainerServices'; nested exception is org.springframework.beans.factory.BeanCrea tionException: Error creating bean with name 'optionalContainerServices' defined in class path resource [properties/contexts/portletContainerContext.xml]: Canno t resolve reference to bean 'userInfoService' while setting bean property 'userI nfoService'; nested exception is org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name 'userInfoService' defined in class path resource [properties/contexts/portletContainerContext.xml]: Cannot resolve refer ence to bean 'personAttributeDao' while setting bean property 'personAttributeDa o'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personAttributeDao' defined in class path resour ce [properties/contexts/personDirectoryContext.xml]: Cannot resolve reference to bean 'mergedPersonAttributeDao' while setting bean property 'cachedPersonAttrib utesDao'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'mergedPersonAttributeDao' defined in class path resource [properties/contexts/personDirectoryContext.xml]: Cannot resolve reference to bean 'uPortalLdapAttributeSource' while setting bean property 'pers onAttributeDaos' with key [1]; nested exception is org.springframework.beans.fac tory.BeanCreationException: Error creating bean with name 'uPortalLdapAttributeS ource' defined in class path resource [properties/contexts/personDirectoryContex t.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFo undError: org/springframework/ldap/AttributesMapper [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353) [java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) [java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) [java] ... 48 more
    via by Tuyhang Ly,
  • uP-3.0 uses spring-ldap version 1.2.1, however, the person-directory-1.0.1.pom depends on version 1.1.2. I got the following error when trying to configure "uPortalLdapAttributeSource" in personDirectoryContext.xml: [java] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'portletDefinitionRegistry' defined in class path resource [properties/contexts/portletContainerContext.xml]: Cannot resolve refer ence to bean 'optionalContainerServices' while setting bean property 'optionalCo ntainerServices'; nested exception is org.springframework.beans.factory.BeanCrea tionException: Error creating bean with name 'optionalContainerServices' defined in class path resource [properties/contexts/portletContainerContext.xml]: Canno t resolve reference to bean 'userInfoService' while setting bean property 'userI nfoService'; nested exception is org.springframework.beans.factory.BeanCreationE xception: Error creating bean with name 'userInfoService' defined in class path resource [properties/contexts/portletContainerContext.xml]: Cannot resolve refer ence to bean 'personAttributeDao' while setting bean property 'personAttributeDa o'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personAttributeDao' defined in class path resour ce [properties/contexts/personDirectoryContext.xml]: Cannot resolve reference to bean 'mergedPersonAttributeDao' while setting bean property 'cachedPersonAttrib utesDao'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'mergedPersonAttributeDao' defined in class path resource [properties/contexts/personDirectoryContext.xml]: Cannot resolve reference to bean 'uPortalLdapAttributeSource' while setting bean property 'pers onAttributeDaos' with key [1]; nested exception is org.springframework.beans.fac tory.BeanCreationException: Error creating bean with name 'uPortalLdapAttributeS ource' defined in class path resource [properties/contexts/personDirectoryContex t.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFo undError: org/springframework/ldap/AttributesMapper [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353) [java] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) [java] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) [java] ... 48 more
    via by Tuyhang Ly,
    • tory.BeanCreationException: Error creating bean with name 'uPortalLdapAttributeS ource' defined in class path resource [properties/contexts/personDirectoryContex t.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFo undError: org/springframework/ldap/AttributesMapper at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
    No Bugmate found.