Return-Path: Delivered-To: apmail-incubator-cxf-user-archive@locus.apache.org Received: (qmail 40178 invoked from network); 16 Nov 2006 11:27:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Nov 2006 11:27:52 -0000 Received: (qmail 18459 invoked by uid 500); 16 Nov 2006 11:27:51 -0000 Delivered-To: apmail-incubator-cxf-user-archive@incubator.apache.org Received: (qmail 18387 invoked by uid 500); 16 Nov 2006 11:27:50 -0000 Mailing-List: contact cxf-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cxf-user@incubator.apache.org Delivered-To: mailing list cxf-user@incubator.apache.org Received: (qmail 18353 invoked by uid 99); 16 Nov 2006 11:27:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 03:27:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jim.ma@iona.com designates 65.223.216.181 as permitted sender) Received: from [65.223.216.181] (HELO amereast-smg1.iona.com) (65.223.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Nov 2006 03:27:37 -0800 Received: from amer-ems1.IONAGLOBAL.COM ([10.65.6.25]) by amereast-smg1.iona.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id kAGBQTDW007795; Thu, 16 Nov 2006 06:26:29 -0500 (EST) Received: from shangrila ([10.129.9.120]) by amer-ems1.IONAGLOBAL.COM with Microsoft SMTPSVC(6.0.3790.1830); Thu, 16 Nov 2006 06:27:13 -0500 From: "Jim Ma" To: , Subject: RE: Importing schemas from jars Date: Thu, 16 Nov 2006 19:27:12 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <455C46B7.5060101@iona.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-OriginalArrivalTime: 16 Nov 2006 11:27:14.0726 (UTC) FILETIME=[2A7F5C60:01C70972] X-Virus-Checked: Checked by ClamAV on apache.org Hi Robin , I tried http.xsd using the "-catalog" option . It works fine. XJC seems do not invoke catalog resolver if the schemaLoacation defined with relative path like " /schemas/wsdl/wsdl.xsd", so I need to change the schemaLocation as following : And this is my catalog file : Regards Jim > -----Original Message----- > From: James Mao [mailto:james.mao@iona.com] > Sent: Thursday, November 16, 2006 7:09 PM > To: cxf-user@incubator.apache.org; cxf-dev@incubator.apache.org > Subject: Re: Importing schemas from jars > > > Resend this email, sorry if you received twice. > > Hi Robin, > > We only fixed this in the wsdl2java tools, I don't know how the jaxb xjc > resolve the resources, i have to ask a question in the jaxb mail list. > > The xjc catalog works only in jaxb example which use the the xjc ant > task, i tried to use in maven2 xjc plugin, seems not work properly , i > have to ask this also in jaxb mail list. > > The work-around solution i have is to create another maven plugin, the > plugin will read the xsd and turns out the dumy wsdl file which only > contain the schema, and then use the wsdl2java to generate the xsd java > types artifacts. > > I mean if it's urgent for you, i can do this for a tempo solution. > > BTW, the catalog is also a work-around solution for you, right? you are > not going to use catalog in the real system, right? > > Cheers, > James. > > > Hello, > > > > I would like to use the xsdtojava maven plugin to generate code for a > > schema that references a schema in the cxf-common-schemas jar. > > > > I tried adding a dependency to cxf-common-schemas and using the > > following import: > > > > > schemaLocation="/schemas/wsdl/wsdl.xsd"/> > > > > However, xjc is unable to resolve "/schemas/wsdl/wsdl.xsd". I also > > tried using the "-catalog" option without any luck (it doesn't seem to > > search the classpath for resources either). > > > > Any suggestions? > > > > > > Thanks, > > Robin > > > > >