Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BD3F186E8 for ; Wed, 23 Mar 2016 11:48:36 +0000 (UTC) Received: (qmail 13343 invoked by uid 500); 23 Mar 2016 11:48:35 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 13267 invoked by uid 500); 23 Mar 2016 11:48:35 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 13253 invoked by uid 99); 23 Mar 2016 11:48:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Mar 2016 11:48:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B79521800EE for ; Wed, 23 Mar 2016 11:48:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6PNTWhhDQ9Li for ; Wed, 23 Mar 2016 11:48:32 +0000 (UTC) Received: from mail-lb0-f178.google.com (mail-lb0-f178.google.com [209.85.217.178]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 299A55FAEA for ; Wed, 23 Mar 2016 11:48:32 +0000 (UTC) Received: by mail-lb0-f178.google.com with SMTP id bc4so8117218lbc.2 for ; Wed, 23 Mar 2016 04:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=ooxhk2ttZrKF5F7jnXi3Mfyh9UNmxnwFbXlayM8dRWo=; b=gXOIjp7yluevfjNtE1uvwLINgENoidfG2q2AK4pVHGbnJP70hF3n+RTOEgeCiGwWw/ naGXqJ/mjzfAbbizx/bFKyXN2+J1egMuJcX2ABPfow2qlQC3JTOYuThS93T4jCoSKaGh KjZNxQ/f1rdAqSlOL+Sfhy/nQLmuKzK/6hQMq3oSWeDw5QU3C4Q8KVYg4OC/h7IzzffV 7V5UGi7liuXQ28T72S3uqyGMv520frBhLEWct6RpKTKzbbliFdv4cLWSss27Sdmmd5nI 19O0XoYaIwxfxk+Y9UVOmoah5+5D0f53q/+Rqg+5oLHXIkkAc8+c3RwbeSy08j5rgUqg E72g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=ooxhk2ttZrKF5F7jnXi3Mfyh9UNmxnwFbXlayM8dRWo=; b=a9bafBlG4p715xiLSVMaU+pKG+KbWJQ3eMd6WdEiELWQvOAqX3IReEuecevBVfDfDi tUAIByx2OQBqzIbevT2g//luUYvWORlRy7dVZ3ASpBOzBhCNeL7XsjnuFSTTOO3ecbkA 6/qsBo9JH3lI390kLOPmA0wQWdsC2/oxBSzi192Gut7WA/sQGElprbm1hc+EZnraezz+ BnMOoYd9IlTaUpQWnclek+Wc1siOBNW5NNlGUADBslX2pkY2Rt/uFJnr03wOE7ZzyPfK ek4BSTWVrOSusCgOqAGrt6DTsL1xfNzdzWFxN+SuC+XNvQJSvXxSF6C9QSVSn33m54u4 tPBQ== X-Gm-Message-State: AD7BkJLKJFF6ICrv+RfLlO3KsRYUQ1X0wBp15ROLZq7Qux+envW2N+Boj2bTn6S5fwxv6w== X-Received: by 10.112.51.8 with SMTP id g8mr803381lbo.109.1458733710562; Wed, 23 Mar 2016 04:48:30 -0700 (PDT) Received: from [10.39.0.31] (nat-141-pool-1-ip-6.cosmostv.by. [87.252.225.96]) by smtp.googlemail.com with ESMTPSA id 40sm344154lfp.41.2016.03.23.04.48.29 for (version=TLSv1/SSLv3 cipher=OTHER); Wed, 23 Mar 2016 04:48:29 -0700 (PDT) Subject: Re: catalogLocation in JAXB/JSON Provider and @SchemaValidation To: users@cxf.apache.org References: From: Sergey Beryozkin Message-ID: <56F2828D.3090700@gmail.com> Date: Wed, 23 Mar 2016 14:48:29 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for the analysis and the patch, I'm traveling so will look into it in detail next week (though might apply the patch earlier), does your patch addresses all of your concerns you raised in this thread ? Cheers, Sergey On 23/03/16 08:21, Vjacheslav V. Borisov wrote: >> Don't know, how should this fixed (or should not) >> E.g. , code like this could fix that, but seems ugly: >> resolvedLocation = >> catalogResolver.resolvePublic(publicId!=null?publicId:namespaceURI, >> systemId); >> >> > Found where it takes place in case of cxf-wadl2java-plugin, > please see SchemaCompilerImpl.bind(), it passes namespaceURI as publicId > parameter, while SchemaHandler passes publicId as publicId, which is null, > and resolve does not takes place. > http://grepcode.com/file/repo1.maven.org/maven2/com.sun.xml.bind/jaxb-xjc/2.2.11/com/sun/tools/xjc/api/impl/s2j/SchemaCompilerImpl.java > > I submitted my patch https://issues.apache.org/jira/browse/CXF-6840 > -- Sergey Beryozkin Talend Community Coders http://coders.talend.com/