Spring Tool Suite
  1. Spring Tool Suite
  2. STS-810

issue with the <mvc:view-controller /> tag

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.3.0.RELEASE
    • Fix Version/s: 2.5.0.RC1
    • Component/s: None
    • Labels:
      None

      Description

      STS 2.3 now supports the new mvc namespace.
      It works fine when I use <mvc:annotation-driven/> and <mvc:interceptors> tags. However, when using <mvc:view-controller /> it shows the following error message:

      Description Resource Path Location Type
      Unexpected exception parsing XML document from file [E:/.../security-1-solution/src/main/webapp/WEB-INF/accounts-servlet-config.xml]; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.web.servlet.handler.SimpleUrlHandlerMapping#security-1-solution#src/main/webapp/WEB-INF/accounts-servlet-config.xml#23' is defined accounts-servlet-config.xml /security-1-solution/src/main/webapp/WEB-INF Unknown Spring Beans Problem

      I have checked and I believe the bean SimpleUrlHandlerMapping has been registered properly by the NamespaceHandler (inside a class called ViewControllerBeanDefinitionParser).
      Also the application does not have any issue at runtime.

        Activity

        Hide
        Christian Dupuis added a comment -

        STS-723: mvc:view-controller element causing unexpected exception in xml parsing
        https://issuetracker.springsource.com/browse/STS-723

        Show
        Christian Dupuis added a comment - STS-723 : mvc:view-controller element causing unexpected exception in xml parsing https://issuetracker.springsource.com/browse/STS-723

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Isvy (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              First Response Date: