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

Chunk may not find templates in modular class loading environments

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.19.2
    • Fix Version/s: 2.19.4, 2.20.0
    • Component/s: camel-chunk
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: