org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hello': Injection of resource fields failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'helloService' is defined

okky.kr | 2 months ago
  1. 0

    OKKY - spring 어노테이션 스캔 설정문의..ㅜㅜ

    okky.kr | 2 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hello': Injection of resource fields failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'helloService' is defined
  2. 0

    Error creating bean with name blCheckoutService - Injection of resource dependencies failed

    GitHub | 3 years ago | gowthamgutha
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCheckoutService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blCheckoutWorkflow' defined in resource loaded from byte array: Cannot create inner bean 'com.mycompany.core.email.service.ConfirmationEmailActivity#ad2816' of type [com.mycompany.core.email.service.ConfirmationEmailActivity] while setting bean property 'activities' with key [6]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.mycompany.core.email.service.ConfirmationEmailActivity#ad2816': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myEmailService' is defined
  3. 0

    Having issues autowiring a sessionfactory bean with spring mvc and hibernate

    Stack Overflow | 3 years ago | AndyAdamantium
    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 'searchAppController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: public arlua.dao.impl.ApplicationInstanceDaoImpl arlua.controller.SearchAppController.applicationInstanceDaoImpl; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationInstanceDaoImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'mySessionFactory' is defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Multiple datasource config

    Stack Overflow | 3 years ago | hellraisers
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'securityDataSource' is defined
  6. 0

    No bean named 'notificationsDependencyFactory' is defined

    Stack Overflow | 2 years ago | ThanksForAllTheFish
    java.lang.IllegalStateException: Failed to load ApplicationContext

  1. tfr 3 times, last 4 months ago
  2. Andreas Häber 4 times, last 4 weeks ago
  3. Luka 1 times, last 2 months ago
  4. mortalman7 11 times, last 4 months ago
  5. serious2monkeys 5 times, last 3 months ago
2 more registered users
51 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.NoSuchBeanDefinitionException

    No bean named 'helloService' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition()
  2. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:387)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:968)
    3. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:246)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:168)
    5 frames
  3. Spring Context
    CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject
    1. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)
    2. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)
    3. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:537)
    3 frames
  4. Spring Beans
    InjectionMetadata.injectFields
    1. org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:180)
    2. org.springframework.beans.factory.annotation.InjectionMetadata.injectFields(InjectionMetadata.java:105)
    2 frames
  5. Spring Context
    CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation
    1. org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessAfterInstantiation(CommonAnnotationBeanPostProcessor.java:289)
    1 frame
  6. Spring Beans
    AbstractAutowireCapableBeanFactory$1.run
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:959)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    3 frames
  7. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  8. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:221)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
    7 frames
  9. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
    2 frames
  10. Spring MVC
    HttpServletBean.init
    1. org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:402)
    2. org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:316)
    3. org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:282)
    4. org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:126)
    4 frames
  11. JavaServlet
    GenericServlet.init
    1. javax.servlet.GenericServlet.init(GenericServlet.java:212)
    1 frame
  12. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    2. org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    3. org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)
    4. org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)
    5. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    6. org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
    7. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    8. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
    9. org.apache.catalina.core.StandardService.start(StandardService.java:525)
    10. org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
    11. org.apache.catalina.startup.Catalina.start(Catalina.java:595)
    11 frames
  13. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  14. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
    2 frames