Claus Ibsen created CAMEL-6572:
----------------------------------

             Summary: 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: Claus Ibsen
             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

Reply via email to