Spring Security
  1. Spring Security
  2. SEC-1357

Use reader context classloader when checking for web classes in namespace handler

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1
    • Component/s: Namespace
    • Labels:
      None

      Description

      Following discussion with Christian. In some situations (e.g. tooling), ClassUtils.getDefaultClassLoader() will fail to locate the web classes. parserContext.getReaderContext().getBeanClassLoader() should be used instead.

        Activity

        Hide
        Luke Taylor added a comment -

        We went with "getClass().getClassLoader()" which seems to do the trick.

        Show
        Luke Taylor added a comment - We went with "getClass().getClassLoader()" which seems to do the trick.

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Luke Taylor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: