[
https://issues.apache.org/jira/browse/CAMEL-17524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17480280#comment-17480280
]
Ryan Yeats commented on CAMEL-17524:
------------------------------------
Sorry, I would have put up a PR right when i wrote the ticket but it took me a
while to get my development environment working for camel and everything good
to build. I checked your fix and it looks like you missed
ClassPathURIResolver.java resource loading call so I went ahead and pushed an
additional PR up with that fix and a couple other places that may have the same
issue.
> Camel loading of resources using ClassResolver API doesn't work in OSGi
> enviroments
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-17524
> URL: https://issues.apache.org/jira/browse/CAMEL-17524
> Project: Camel
> Issue Type: Bug
> Components: osgi
> Affects Versions: 3.14.0
> Reporter: Ryan Yeats
> Priority: Minor
> Fix For: 3.14.1, 3.15.0
>
>
> https://issues.apache.org/jira/browse/CAMEL-17116 changed how resources were
> loaded in several components the problem being that now they don't use the
> classloader of the class making the resource calls in OSGi environments. Its
> a simple change to call the method loadResourceAsStream(String name,
> ClassLoader loader) and passing in the calling classes class loader instead
> of loadResourceAsStream(String name).
--
This message was sent by Atlassian Jira
(v8.20.1#820001)