Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-3011

GroovyScriptFactory should use BeanClassLoader instead of default class loader

    XMLWordPrintable

    Details

      Description

      As GroovyScriptExecutingMessageProcessor creates new instances of GroovyScriptFactory without calling setBeanClassLoader() and setBeanFactory() Groovy scripts are loaded with the default class loader (ClassUtils.getDefaultClassLoader()) instead of the BeanClassLoader.

      This results in ClassNotFoundExceptions if Groovy classes are referenced that are available on BeanClassLoader but not on the default class loader (e.g. the current thread's ContextClassLoader)

        Attachments

          Activity

            People

            Assignee:
            grussell Gary Russell
            Reporter:
            srt Stefan Reuter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: