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

Babak Vahdat commented on CAMEL-5321:
-------------------------------------

The removal of the XSD files through:

http://svn.apache.org/viewvc?view=revision&revision=1344597

Now causes the following test:

{code}
mvn test -Dtest=ValidatorSchemaImportTest
{code}

to fail with:

{code}
...
Caused by: java.io.FileNotFoundException: Cannot find resource in classpath for 
URI: org/apache/camel/component/validator/relativeparent/child/child.xsd
        at 
org.apache.camel.util.ResourceHelper.resolveMandatoryResourceAsInputStream(ResourceHelper.java:92)
        at 
org.apache.camel.component.validator.ValidatorComponent.createEndpoint(ValidatorComponent.java:44)
...
{code}

                
> Validator Component Fails on XSD with Classpath Relative Imports
> ----------------------------------------------------------------
>
>                 Key: CAMEL-5321
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5321
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.10.0
>            Reporter: Scott England-Sullivan
>            Assignee: Willem Jiang
>             Fix For: 2.9.3, 2.10.0
>
>         Attachments: CAMEL-5321.patch, camel-validator-test.tar.gz
>
>
> When using the Validator Component with an XSD file from a Jar that contains 
> a relative import, the component will throw a FileNotFoundException.
> This is due to the ObjectHelper.loadResourceAsStream(String) operation 
> attempting to load the classpath resource using file path semantics that will 
> not resolve canonically.
> Test case and patch to follow.
> [Thread 
> Reference|http://camel.465427.n5.nabble.com/org-apache-camel-RuntimeCamelException-java-io-FileNotFoundException-Cannot-find-resource-in-classpaI-td5713557.html]
> Best Regards,
> Scott England-Sullivan
> http://fusesource.com

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to