Results 1 to 1 of 1

Thread: Spring JSON View: ApplicationObjectSupport does not run in an ApplicationContext

  1. #1
    Join Date
    Oct 2009
    Posts
    1

    Default Spring JSON View: ApplicationObjectSupport does not run in an ApplicationContext

    I'm trying to use the Spring Json View (org.springframework.web.servlet.view.json.JsonVie w) but whenever I use a class that extends AbstractController I get the following Error:

    Code:
    java.lang.IllegalStateException: ApplicationObjectSupport instance [org.springframework.web.servlet.view.json.JsonView] does not run in an ApplicationContext
    The weird thing is that when I implement the Controller interface directly and do not inherit, it is fine.

    In my current case though I would like to extend AbstractFormController and hence can't write a class that does not inherit from AbstractController.

    Any ideas?
    Last edited by lenniboy; Oct 21st, 2009 at 02:33 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •