Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44FBAC94E for ; Thu, 31 May 2012 00:02:23 +0000 (UTC) Received: (qmail 6078 invoked by uid 500); 31 May 2012 00:02:23 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 6059 invoked by uid 500); 31 May 2012 00:02:23 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 6050 invoked by uid 99); 31 May 2012 00:02:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2012 00:02:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 11D73140C2C for ; Thu, 31 May 2012 00:02:23 +0000 (UTC) Date: Thu, 31 May 2012 00:02:23 +0000 (UTC) From: "Scott England-Sullivan (JIRA)" To: issues@camel.apache.org Message-ID: <34231919.19529.1338422543075.JavaMail.jiratomcat@issues-vm> In-Reply-To: <727637492.19505.1338422184248.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Updated] (CAMEL-5321) Validator Component Fails on XSD with Classpath Relative Imports MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-5321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Scott England-Sullivan updated CAMEL-5321: ------------------------------------------ Attachment: camel-validator-test.tar.gz Test Case Project > 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 > Fix For: 2.10.0 > > Attachments: 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