[ 
https://issues.apache.org/jira/browse/CAMEL-11788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16171610#comment-16171610
 ] 

ASF GitHub Bot commented on CAMEL-11788:
----------------------------------------

GitHub user jamesnetherton opened a pull request:

    https://github.com/apache/camel/pull/1941

    CAMEL-11788: Chunk may not find templates in modular class loading 
environments

    https://issues.apache.org/jira/browse/CAMEL-11788

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jamesnetherton/camel CAMEL-11788

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1941.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1941
    
----
commit 38615d459580ceaaa7e8585c894082be12ab2a62
Author: James Netherton <[email protected]>
Date:   2017-09-19T12:09:00Z

    CAMEL-11788: Chunk may not find templates in modular class loading 
environments

----


> Chunk may not find templates in modular class loading environments
> ------------------------------------------------------------------
>
>                 Key: CAMEL-11788
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11788
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-chunk
>    Affects Versions: 2.19.2
>            Reporter: James Netherton
>            Assignee: James Netherton
>            Priority: Minor
>             Fix For: 2.20.0
>
>
> 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:
> {code}
> ClassLoader applicationContextClassLoader = 
> getCamelContext().getApplicationContextClassLoader();
> if (applicationContextClassLoader != null) {
>     theme.setJarContext(applicationContextClassLoader);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to