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

Spring JIRA | James Shaw | 4 years 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

    Spring Dependency Injection - JournalDev

    journaldev.com | 10 months ago
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.sapmle.MyCommunication] is defined
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    SVN / if not used, exception are returned

    GitHub | 4 years ago | fxprunayre
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [org.fao.geonet.kernel.SvnManager] is defined: expected single bean but found 0:
  4. 0

    exception stack trace is truncated

    GitHub | 3 years ago | kgignatyev
    java.lang.ExceptionInInitializerError

  1. Gatgeagent 4 times, last 5 months ago
  2. Pilleo 6 times, last 6 months ago
  3. qavid 2 times, last 9 months ago
  4. MrMonkey 3 times, last 12 months ago
  5. iferca 1 times, last 3 weeks ago
4 more registered users
19 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 'environment' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition()
  2. Spring Beans
    DefaultListableBeanFactory.getBean
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:568)
    2. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:264)
    2 frames
  3. Spring Context
    AbstractApplicationContext.getBean
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1125)
    1 frame
  4. Unknown
    Test.main
    1. Test.main(Test.java:7)
    1 frame