[
https://issues.apache.org/jira/browse/CAMEL-6572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang reassigned CAMEL-6572:
-----------------------------------
Assignee: Willem Jiang (was: Claus Ibsen)
> Validator component - Loading resource on classpath with relative paths
> doesnt work in OSGi
> -------------------------------------------------------------------------------------------
>
> Key: CAMEL-6572
> URL: https://issues.apache.org/jira/browse/CAMEL-6572
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Willem Jiang
> Fix For: 2.11.2, 2.12.0
>
>
> When loading a resource on the classpath with the validator component that
> uses xsd that imports other xsd's, and they import xsd using relative paths
> with ../.. to go back in the path, then that fails
> an example
> {code}
> Caused by: java.io.FileNotFoundException: Cannot find resource in classpath
> for URI: schema/../../../structures/2.0/structures.xsd
> at
> org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:106)
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira