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

AppFuse JIRA | Tuncay Altun | 10 years ago
  1. 0

    This could definitely be a bug. Looking in BasePageTestCase and web.xml, there's no references to classpath*:/applicationContext.xml. http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/action/BasePageTestCase.html ---------------build error On 2/20/07, Tuncay A. <tuncay.jc@...> wrote: > > I tried without result. > > Seems like web module doesn't know about applicationContext.xml from core > > PersonListTest: > > testSearch(net.company.webapp.bean.PersonListTest) Time elapsed: 0.359 sec > <<< ERROR! > org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean > named 'personManager' is defined > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:340) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:906) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161) > at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642) > at net.jsync.webapp.bean.PersonListTest.setUp(PersonListTest.java:18) > at junit.framework.TestCase.runBare(TestCase.java:128) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:120) > at junit.framework.TestSuite.runTest(TestSuite.java:230) > at junit.framework.TestSuite.run(TestSuite.java:225) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) > at org.apache.maven.surefire.Surefire.run(Surefire.java:129) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747) > > > PersonFormTest: > > ------------------------------------------------------------------------------- > Test set: net.company.webapp.bean.PersonFormTest > ------------------------------------------------------------------------------- > Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.046 sec > <<< FAILURE! > testAdd(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.015 sec > <<< ERROR! > java.lang.NullPointerException > at net.company.webapp.bean.PersonForm.save(PersonForm.java:54) > at net.company.webapp.bean.PersonFormTest.testAdd(PersonFormTest.java:31) > > testEdit(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.016 sec > <<< ERROR! > java.lang.NullPointerException > at net.company.webapp.bean.PersonForm.edit(PersonForm.java:44) > at net.company.webapp.bean.PersonFormTest.testEdit(PersonFormTest.java:39) > > testSave(net.company.webapp.bean.PersonFormTest) Time elapsed: 0 sec <<< > ERROR! > java.lang.NullPointerException > at net.company.webapp.bean.PersonForm.edit(PersonForm.java:44) > at net.company.webapp.bean.PersonFormTest.testSave(PersonFormTest.java:47) > > testRemove(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.015 sec > <<< ERROR! > java.lang.NullPointerException > at net.company.webapp.bean.PersonForm.delete(PersonForm.java:36) > at > net.company.webapp.bean.PersonFormTest.testRemove(PersonFormTest.java:65)

    AppFuse JIRA | 10 years ago | Tuncay Altun
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'personManager' is defined
  2. 0

    This could definitely be a bug. Looking in BasePageTestCase and web.xml, there's no references to classpath*:/applicationContext.xml. http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/action/BasePageTestCase.html ---------------build error On 2/20/07, Tuncay A. <tuncay.jc@...> wrote: > > I tried without result. > > Seems like web module doesn't know about applicationContext.xml from core > > PersonListTest: > > testSearch(net.company.webapp.bean.PersonListTest) Time elapsed: 0.359 sec > <<< ERROR! > org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean > named 'personManager' is defined > at > org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:340) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:906) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242) > at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161) > at > org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642) > at net.jsync.webapp.bean.PersonListTest.setUp(PersonListTest.java:18) > at junit.framework.TestCase.runBare(TestCase.java:128) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:120) > at junit.framework.TestSuite.runTest(TestSuite.java:230) > at junit.framework.TestSuite.run(TestSuite.java:225) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135) > at > org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122) > at org.apache.maven.surefire.Surefire.run(Surefire.java:129) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at > org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225) > at > org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747) > > > PersonFormTest: > > ------------------------------------------------------------------------------- > Test set: net.company.webapp.bean.PersonFormTest > ------------------------------------------------------------------------------- > Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.046 sec > <<< FAILURE! > testAdd(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.015 sec > <<< ERROR! > java.lang.NullPointerException > at net.company.webapp.bean.PersonForm.save(PersonForm.java:54) > at net.company.webapp.bean.PersonFormTest.testAdd(PersonFormTest.java:31) > > testEdit(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.016 sec > <<< ERROR! > java.lang.NullPointerException > at net.company.webapp.bean.PersonForm.edit(PersonForm.java:44) > at net.company.webapp.bean.PersonFormTest.testEdit(PersonFormTest.java:39) > > testSave(net.company.webapp.bean.PersonFormTest) Time elapsed: 0 sec <<< > ERROR! > java.lang.NullPointerException > at net.company.webapp.bean.PersonForm.edit(PersonForm.java:44) > at net.company.webapp.bean.PersonFormTest.testSave(PersonFormTest.java:47) > > testRemove(net.company.webapp.bean.PersonFormTest) Time elapsed: 0.015 sec > <<< ERROR! > java.lang.NullPointerException > at net.company.webapp.bean.PersonForm.delete(PersonForm.java:36) > at > net.company.webapp.bean.PersonFormTest.testRemove(PersonFormTest.java:65)

    AppFuse JIRA | 10 years ago | Tuncay Altun
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'personManager' is defined
  3. 0

    SEVERE: Exception starting filter springSecurityFilterChain

    Stack Overflow | 1 year ago | jdev
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Editor / Upload document does not work

    GitHub | 2 years ago | pvgenuchten
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [jeeves.server.context.ServiceContext] 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)}
  6. 0

    Service tests fails

    GitHub | 3 years ago | Delawen
    java.lang.IllegalStateException: Failed to load ApplicationContext

  1. Andreas Häber 4 times, last 1 month ago
  2. Luka 2 times, last 2 months ago
  3. mortalman7 11 times, last 4 months ago
  4. serious2monkeys 5 times, last 3 months ago
  5. Kawada 1 times, last 7 months ago
3 more registered users
52 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 'personManager' 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:340)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:906)
    3. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
    4 frames
  3. Spring Context
    AbstractApplicationContext.getBean
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:642)
    1 frame
  4. net.jsync.webapp
    PersonListTest.setUp
    1. net.jsync.webapp.bean.PersonListTest.setUp(PersonListTest.java:18)
    1 frame
  5. JUnit
    TestSuite.run
    1. junit.framework.TestCase.runBare(TestCase.java:128)
    2. junit.framework.TestResult$1.protect(TestResult.java:106)
    3. junit.framework.TestResult.runProtected(TestResult.java:124)
    4. junit.framework.TestResult.run(TestResult.java:109)
    5. junit.framework.TestCase.run(TestCase.java:120)
    6. junit.framework.TestSuite.runTest(TestSuite.java:230)
    7. junit.framework.TestSuite.run(TestSuite.java:225)
    7 frames
  6. 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:585)
    4 frames
  7. org.apache.maven
    JUnitTestSet.execute
    1. org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:210)
    1 frame
  8. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:135)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:122)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:129)
    3 frames
  9. 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:585)
    4 frames
  10. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:225)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:747)
    2 frames