org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'standardJmsTemplate' is defined

GitHub | demon101 | 2 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error during sending messages

    GitHub | 2 months ago | demon101
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'standardJmsTemplate' is defined
  2. 0

    Grails 3 JMS Error during sending messages

    Stack Overflow | 2 months ago | demon101
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'standardJmsTemplate' is defined
  3. 0

    Using Groovy command line script to exectue Java Spring Beans how do I stop the NoSuchBeanDefinitionException?

    Stack Overflow | 4 years ago | fergjo
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'gapAnalyzer' is defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When I switched from version 1.0 M2 to 1.0 M3, I have failed to execute the following code ApplicationContext pac = new ClassPathXmlApplicationContext( CONFIGURATION_DATA_FILE); applicationContext = new JavaConfigApplicationContext(); applicationContext.setConfigClasses(ServicesBeanRepository.class, SystemBeanRepository.class); applicationContext.setParent(pac); applicationContext.refresh(); assertNotNull(applicationContext.getBean("customerService")); @Configuration public abstract class ServicesBeanRepository extends ConfigurationSupport { @Bean(autowire = Autowire.BY_TYPE) public CustomerService customerService() { CustomerService customerService = new CustomerServiceJpaImpl(); return customerService; } } In the version 1.0 M2 everything worked normally( I was using AnnotationApplicationContext instead of JavaConfigApplicationContext) And even when I switch to the deprecated AnnotationApplicationContext in the 1.0 M3 i have the same error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'customerService' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:391) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:999) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:174) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:883) at com.***.commerce.service.spi.local.***Services.getCustomerService(****Services.java:45) at com.***.commerce.service.spi.local.CustomerServiceJpaImplTest.beforeTest(CustomerServiceJpaImplTest.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.internal.runners.ClassRoadie.runBefores(ClassRoadie.java:49) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:36) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

    Spring JIRA | 9 years ago | Volodymyr Zhabiuk
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'customerService' is defined
  6. 0

    When I switched from version 1.0 M2 to 1.0 M3, I have failed to execute the following code ApplicationContext pac = new ClassPathXmlApplicationContext( CONFIGURATION_DATA_FILE); applicationContext = new JavaConfigApplicationContext(); applicationContext.setConfigClasses(ServicesBeanRepository.class, SystemBeanRepository.class); applicationContext.setParent(pac); applicationContext.refresh(); assertNotNull(applicationContext.getBean("customerService")); @Configuration public abstract class ServicesBeanRepository extends ConfigurationSupport { @Bean(autowire = Autowire.BY_TYPE) public CustomerService customerService() { CustomerService customerService = new CustomerServiceJpaImpl(); return customerService; } } In the version 1.0 M2 everything worked normally( I was using AnnotationApplicationContext instead of JavaConfigApplicationContext) And even when I switch to the deprecated AnnotationApplicationContext in the 1.0 M3 i have the same error org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'customerService' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:391) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:999) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:174) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:883) at com.***.commerce.service.spi.local.***Services.getCustomerService(****Services.java:45) at com.***.commerce.service.spi.local.CustomerServiceJpaImplTest.beforeTest(CustomerServiceJpaImplTest.java:29) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.junit.internal.runners.ClassRoadie.runBefores(ClassRoadie.java:49) at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:36) at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

    Spring JIRA | 9 years ago | Volodymyr Zhabiuk
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'customerService' is defined
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 'standardJmsTemplate' 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:704)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1175)
    3. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    4 frames
  3. Spring Context
    AbstractApplicationContext.getBean
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1054)
    1 frame
  4. Spring Beans
    BeanFactory$getBean$3.call
    1. org.springframework.beans.factory.BeanFactory$getBean$3.call(Unknown Source)
    1 frame
  5. grails.plugin.jms
    JmsService.normalizeServiceCtx
    1. grails.plugin.jms.JmsService.normalizeServiceCtx(JmsService.groovy:381)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor1971.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:498)
    3 frames
  7. Groovy
    AbstractCallSite.callCurrent
    1. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
    2. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
    3 frames
  8. grails.plugin.jms
    JmsService$send.call
    1. grails.plugin.jms.JmsService.send(JmsService.groovy:147)
    2. grails.plugin.jms.JmsService.send(JmsService.groovy)
    3. grails.plugin.jms.JmsService$send.call(Unknown Source)
    3 frames