Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-11788

Chunk may not find templates in modular class loading environments

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.19.2
    • 2.19.4, 2.20.0
    • camel-chunk
    • None
    • Unknown

    Description

      I've been playing with camel-chunk on WildFly. Chunk is not able to find my template files from the classpath. It tries to use a number of fallback mechanisms to discover templates, but none of them are appropriate where multiple class loaders are in operation.

      One thing that'd help, is if we configure the Chunk Theme object like so:

      ClassLoader applicationContextClassLoader = getCamelContext().getApplicationContextClassLoader();
      if (applicationContextClassLoader != null) {
          theme.setJarContext(applicationContextClassLoader);
      }
      

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: