Announcement Announcement Module
Collapse
No announcement yet.
Bean definition does not carry a resolved bean class Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bean definition does not carry a resolved bean class

    When I run spring on NS6.1 I get the error below. But when I run it on Tomcat 5.0.28, everything work fine. Can anyone explain what this issue is and how I might resolve it?

    Internal error: exception thrown from the servlet service function (uri=/vignette/TNT/games/hscores2test.jsp): org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'userDao' defined in ServletContext resource [/WEB-INF/tnt/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: Bean definition does not carry a resolved bean class, Stack: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'userDao' defined in ServletContext resource [/WEB-INF/tnt/applicationContext.xml]: Instantiation of bean failed; nested exception is java.lang.IllegalStateException: Bean definition does not carry a resolved bean class
    java.lang.IllegalStateException: Bean definition does not carry a resolved bean class
    at org.springframework.beans.factory.support.Abstract BeanDefinition.getBeanClass(AbstractBeanDefinition .java:205)
    at org.springframework.beans.factory.support.SimpleIn stantiationStrategy.instantiate(SimpleInstantiatio nStrategy.java:49)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:322)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:223)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:536)
    at _jsps._TNT._games._hscores2test_jsp._jspService(_h scores2test_jsp.java:116)

    - Nick

  • #2
    Bean definition does not carry a resolved bean class

    I realized that NS 6.1 is a Servlet 2.3 container that does not initialize listeners before servlets, whereas Tomcat 5.0.28 is a Servlet 2.4 container that does. So I just need to swap out the ContextLoaderListener in my web.xml with the ContextLoaderServlet.

    - Nick

    Comment

    Working...
    X