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

Apereo Issues | Tuyhang Ly | 9 years ago
  1. 0

    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

    Apereo Issues | 9 years ago | 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
  2. 0

    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

    Apereo Issues | 9 years ago | 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
  3. 0

    Error creating bean with name 'spring.datasource.CONFIGURATION_PROPERTIES'

    Stack Overflow | 7 months ago | Somasundaram Sekar
    tory.BeanCreationException: Error creating bean with name 'spring.datasource.CONFIGURATION_PROPERTIES': Initialization of bean failed; nested exception is javax.validation.Validation Exception: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
      2. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
      3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1172)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:940)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)
      6 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. Spring Beans
      BeanDefinitionValueResolver.resolveReference
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)
      2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
      3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
      4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
      5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      6. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
      6 frames