Announcement Announcement Module
Collapse
No announcement yet.
XmlViewResolver resolving beans in parent context Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XmlViewResolver resolving beans in parent context

    I have a XmlViewResolver configured with a views.xml file.

    If I try and resolve a view which does not exist in the views.xml file, but whose name matches a bean which exists in the configuration file that the XmlViewResolver is defined in I get the following Exception.

    org.springframework.beans.factory.BeanNotOfRequire dTypeException: Bean named '/login.form' must be of type [org.springframework.web.servlet.View], but was actually of type [com.dm.python.web.ui.controller.authentication.Log inFormController]

    It seems to me that the XmlViewResolver is getting beans from the parent bean factory when it can't find it in the views.xml file.

    Is this supposed to happen? If so, I guess I need to be more careful about naming my views and beans.

    I am using spring 1.2.2
Working...
X