Uploaded image for project: 'MyFaces Orchestra'
  1. MyFaces Orchestra
  2. ORCHESTRA-36

Improve error message in AccessScopeManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3
    • 1.3.1
    • Conversation
    • None
    • Windows XP, RAD 7.0, WAS 6.1

    Description

      If you forget to add the Spring DelegatingVariableResolver (or one of its variants) to faces-config, you get this error message:

      "No AccessScopeManager found. Probably you forgot to add <import resource=\"classpath*:/META-INF/spring-orchestra-init.xml\" />" to your spring configuration."

      "his really needs to be generalized into something like "No AccessScopeManager found. Is your dependency injection framework configured correctly? For Spring and JSF, this means adding <import resource=\"classpath*:/META-INF/spring-orchestra-init.xml\" />" to your Spring configuration and also adding the Spring DelegatingVariableResolver (or one of its subclasses) to your JSF configuration."

      Maybe that's a little verbose, but you get the idea. The existing message can send you down the wrong path.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kito75 Kito D. Mann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: