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 3C77291EA for ; Sun, 15 Jan 2012 15:33:01 +0000 (UTC) Received: (qmail 20578 invoked by uid 500); 15 Jan 2012 15:33:00 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 20547 invoked by uid 500); 15 Jan 2012 15:33:00 -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 20539 invoked by uid 99); 15 Jan 2012 15:33:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2012 15:33:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Jan 2012 15:32:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6A97E14E530 for ; Sun, 15 Jan 2012 15:32:39 +0000 (UTC) Date: Sun, 15 Jan 2012 15:32:39 +0000 (UTC) From: "Claus Ibsen (Issue Comment Edited) (JIRA)" To: issues@camel.apache.org Message-ID: <1953114435.42767.1326641559438.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <934995290.21713.1326120999330.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Issue Comment Edited] (CAMEL-4877) API-breaking changes in Validator-component MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-4877?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1318= 6522#comment-13186522 ]=20 Claus Ibsen edited comment on CAMEL-4877 at 1/15/12 3:30 PM: ------------------------------------------------------------- Can you attach a little example of this, such as the template file which re= fer to the other template. Just to be sure, so we can use that for an unit = test. =20 was (Author: davsclaus): Can you attach a little example of this, such as the velocity template = which refer to the other template. Just to be sure, so we can use that for = an unit test. =20 > API-breaking changes in Validator-component > ------------------------------------------- > > Key: CAMEL-4877 > URL: https://issues.apache.org/jira/browse/CAMEL-4877 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.9.0 > Reporter: Johan M=C3=B6r=C3=A9n > Fix For: 2.9.1, 2.10.0 > > > Hi, we tried to upgrade to 2.9.0 last week but ran into trouble when usin= g the newly moved validator component.=20 > Before upgrading (running 2.8.0), having a root xsd that imported or incl= uded other xsd-files on the class-path was no problem for us. But upgrading= to 2.9.0 breaks this functionality. Resulting in the following error=20 > {code} > ... > Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to res= olve endpoint: validator://com/yyy/infra/applications/yyy-application/consu= mer/ws/consumer-report-request.xsd due to: src-resolve: Cannot resolve the = name 'ns6:YyyReport' to a(n) 'element declaration' component. > ... > {code} > I can see in the new documentation for the validator-component that there= is an new property that you can set called *resourceResolver*. Given the n= ame and the description of the interface LSResourceResolver my guess is tha= t an implementation of that interface is required to get the old functional= ity back.=20 > I might be wrong, but to me this is API-breaking. It would be great if yo= u could provide a "defalut" resourceResolver to mimic the old behavior sinc= e we rely a lot on the ability to compose schemas via includes or imports.= =20 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira