org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DAO_CTU_RO_STAFF': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.asl.jwaf.core.orm.hibernate.SimpleHibernateDao.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/microsoft/sqlserver/jdbc/ISQLServerConnection at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean( :527) ...... ......

csdn123.com | 2 months ago
  1. 0

    weblogicÁ¬½ÓÊý¾Ý¿âÅ䱸: JNDI·½Ê½ - Êý¾Ý¿â - ITÒì³£²éѯÍø - Èí¼þÒì³£²éѯר¼Ò

    it2down.com | 2 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DAO_CTU_RO_STAFF': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.asl.jwaf.core.orm.hibernate.SimpleHibernateDao.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/microsoft/sqlserver/jdbc/ISQLServerConnection at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean( :527) ...... ......
  2. 0

    weblogic连接数据库配备: JNDI方式_weblogic连接超时有关问题解决方案_weblogic部署出现包冲突的解决方法__脚本百事通

    csdn123.com | 2 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DAO_CTU_RO_STAFF': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.asl.jwaf.core.orm.hibernate.SimpleHibernateDao.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/microsoft/sqlserver/jdbc/ISQLServerConnection at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean( :527) ...... ......
  3. 0

    Geting the exception while creating bean

    Stack Overflow | 4 years ago | abhijeet2601
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.peakpacific.cbs.administrator.service.ConfigurationService com.peakpacific.cbs.administrator.controller.ConfigurationController.configurationService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.peakpacific.cbs.administrator.service.ConfigurationService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.inject.Inject()}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hibernate @Transactional Sessions

    Stack Overflow | 5 years ago | Igor Masternoy
    java.lang.IllegalStateException: Failed to load ApplicationContext
  6. 0

    AppFuse - User - Injection of autowired dependencies failed

    nabble.com | 4 months ago
    org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.mycompany.webapp.controller.Applic ationsController.setApplicationsManager(com.mycompany.service.ApplicationsManager); nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionExce ption: No matching bean of type [com.mycompany.service.ApplicationsManager] found for dependency: expected at least 1 bean which qualifies as autowire candidate f or this dependency. Dependency annotations: {}

  1. tvrmsmith 2 times, last 3 months ago
  2. abrazeneb 2 times, last 4 months ago
  3. rlovtangen 1 times, last 5 months ago
  4. kjhdofjosvs 3 times, last 4 weeks ago
  5. Tahir 6 times, last 2 months ago
13 more registered users
80 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 'loginService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DAO_CTU_RO_STAFF': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.asl.jwaf.core.orm.hibernate.SimpleHibernateDao.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [hibernate-context.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: com/microsoft/sqlserver/jdbc/ISQLServerConnection at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean( :527) ...... ......

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean()
  2. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    4. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    5. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    7 frames
  3. Spring Context
    AbstractApplicationContext.getBean
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1075)
    1 frame
  4. Spring MVC
    AbstractDetectingUrlHandlerMapping.initApplicationContext
    1. org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:383)
    2. org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.registerHandler(AbstractUrlHandlerMapping.java:362)
    3. org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.detectHandlers(AbstractDetectingUrlHandlerMapping.java:82)
    4. org.springframework.web.servlet.handler.AbstractDetectingUrlHandlerMapping.initApplicationContext(AbstractDetectingUrlHandlerMapping.java:58)
    4 frames
  5. Spring Context
    ApplicationObjectSupport.initApplicationContext
    1. org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)
    1 frame
  6. Spring
    WebApplicationObjectSupport.initApplicationContext
    1. org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)
    1 frame
  7. Spring Context
    ApplicationContextAwareProcessor.postProcessBeforeInitialization
    1. org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)
    2. org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:109)
    3. org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:88)
    3 frames
  8. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    5. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    6. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    9. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    9 frames
  9. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    2 frames
  10. Spring
    ContextLoaderListener.contextInitialized
    1. org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:282)
    2. org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:204)
    3. org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    3 frames
  11. Atmosphere weblogic
    EventsManager$FireContextListenerAction.run
    1. weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
    1 frame
  12. weblogic.security.acl
    AuthenticatedSubject.doAs
    1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    1 frame
  13. weblogic.security.service
    SecurityManager.runAs
    1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    1 frame
  14. Atmosphere weblogic
    WebAppModule.start
    1. weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
    2. weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
    3. weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
    4. weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
    5. weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
    5 frames
  15. weblogic.application.internal
    ModuleStateDriver$3.next
    1. weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    1 frame
  16. weblogic.application.utils
    StateMachineDriver.nextState
    1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    1 frame
  17. weblogic.application.internal
    ModuleStateDriver$3.next
    1. weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    2. weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    3. weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    4. weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    4 frames
  18. weblogic.application.utils
    StateMachineDriver.nextState
    1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    1 frame
  19. weblogic.application.internal
    BaseDeployment$2.next
    1. weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    2. weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    3. weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
    3 frames
  20. weblogic.application.utils
    StateMachineDriver.nextState
    1. weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
    1 frame
  21. weblogic.application.internal
    DeploymentStateChecker.activate
    1. weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
    2. weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
    3. weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    3 frames
  22. weblogic.deploy.internal
    BasicDeployment.activateFromServerLifecycle
    1. weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    2. weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    3. weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    3 frames
  23. weblogic.management.deploy
    DeploymentServerService.start
    1. weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    2. weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    3. weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    4. weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    5. weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    6. weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    7. weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    8. weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    8 frames
  24. weblogic.t3.srvr
    SubsystemRequest.run
    1. weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    1 frame
  25. weblogic.work
    ExecuteThread.run
    1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    2. weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    2 frames