org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cmc.dao.ReportUserDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cmc.dao.ReportUserDao com.cmc.dao.ReportUserDaoTest.reportUserDao; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.appfuse.dao.hibernate.UserDaoHibernate] for bean with name 'userDao' defined in class path resource [applicationContext-dao.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/userdetails/UserDetailsService

AppFuse JIRA | Selvakumar | 7 years ago
  1. 0

    After Spring Security Lib upgrade to 3.0.1 the Appfuse failed to autowire the hibernate Dao object. package has been modified for the class UserDetailsService org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cmc.dao.ReportUserDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cmc.dao.ReportUserDao com.cmc.dao.ReportUserDaoTest.reportUserDao; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.appfuse.dao.hibernate.UserDaoHibernate] for bean with name 'userDao' defined in class path resource [applicationContext-dao.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/userdetails/UserDetailsService at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:283) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055) Attached the test report for reference

    AppFuse JIRA | 7 years ago | Selvakumar
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cmc.dao.ReportUserDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cmc.dao.ReportUserDao com.cmc.dao.ReportUserDaoTest.reportUserDao; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.appfuse.dao.hibernate.UserDaoHibernate] for bean with name 'userDao' defined in class path resource [applicationContext-dao.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/userdetails/UserDetailsService
  2. 0

    After Spring Security Lib upgrade to 3.0.1 the Appfuse failed to autowire the hibernate Dao object. package has been modified for the class UserDetailsService org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cmc.dao.ReportUserDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cmc.dao.ReportUserDao com.cmc.dao.ReportUserDaoTest.reportUserDao; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.appfuse.dao.hibernate.UserDaoHibernate] for bean with name 'userDao' defined in class path resource [applicationContext-dao.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/userdetails/UserDetailsService at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:283) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055) Attached the test report for reference

    AppFuse JIRA | 7 years ago | Selvakumar
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cmc.dao.ReportUserDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cmc.dao.ReportUserDao com.cmc.dao.ReportUserDaoTest.reportUserDao; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.appfuse.dao.hibernate.UserDaoHibernate] for bean with name 'userDao' defined in class path resource [applicationContext-dao.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/userdetails/UserDetailsService
  3. 0

    using spring batch admin - Spring Forum

    spring.io | 11 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'annotationMappingMetaData': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping org.springframework.batch.admin.web.util.AnnotationMappingMetaData.mapping; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultAnnotationHandlerMapping' defined in URL [jar:file:/C:/gwt/sts/tc-server-developer-2.1.1.RELEASE/spring-insight-instance/wtpwebapps/spring-batch-admin-example/WEB-INF/lib/spring-batch-admin-resources-1.0.0.M1.jar!/META-INF/servlet/freemarker-servlet.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchFieldError: USER_DECLARED_METHODS
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JAVA 启动失败 - Java - 云计算开发者社区 - Powered by Discuz!

    cloudbbs.org | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private javax.sql.DataSource org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration.dataSource; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$NonEmbeddedConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.boot.autoconfigure.jdbc.DataSourceProperties org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$NonEmbeddedConfiguration.properties; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.datasource.CONFIGURATION_PROPERTIES': Could not bind properties; nested exception is java.lang.IllegalStateException: Method [registerNatives] was discovered in the .class file but cannot be resolved in the class object
  6. 0

    Could not autowire field: private org.springframework.mail.javamail.JavaMailSender com.badmap.controller.SignUpController.javaMailSender;

    Stack Overflow | 1 year ago | JonnyXia
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'signUpController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.mail.javamail.JavaMailSender com.badmap.controller.SignUpController.javaMailSender; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.mail.javamail.JavaMailSender] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.factory.BeanCreationException

      Error creating bean with name 'com.cmc.dao.ReportUserDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.cmc.dao.ReportUserDao com.cmc.dao.ReportUserDaoTest.reportUserDao; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.appfuse.dao.hibernate.UserDaoHibernate] for bean with name 'userDao' defined in class path resource [applicationContext-dao.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/security/userdetails/UserDetailsService

      at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory.populateBean
      1. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:283)
      2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)
      2 frames