users@jaxb.java.net

Re: WSDP 1.2 and xsd:import

From: Brian Hannan <bhannan_at_mac.com>
Date: Thu, 12 Jun 2003 19:11:21 -0700

On Thursday, June 12, 2003, at 03:39 PM, Thomas Pl?mpe wrote:

>> I just upgraded to WSDP 1.2 and now XJC is giving me errors when
>> attempting to compile an XSD I have with an xsd:import.
>>
>> It claims everything in the imported XSD, which is also given to XJC,
>> is a duplicate. Sounds as if XJC is making more than one pass of the
>> file. If I remove the import, then XJC will function properly.
> I've noticed the same problem with the BPEL4WS schema at
> http://schemas.xmlsoap.org/ws/2003/03/business-process/
> which imports the WSDL schema.
>
>> Can anyone be of help here. I set the "-use-runtime" flag an it
>> doesn't solve my problem.
> If you want to keep the import just refrain from giving the imported
> schema (in my case the WSDL schema) to xjc, that worked for me.

I need XJC to compile my included XSD file as well, since I directly
use the structures in those files.

As an FYI, I have three XSD files, all with accompanying XJB files.
Each of the three files also generates objects into three different
Java packages. One of the three XSDs uses structures in another, and
hence I have a single xsd:import.

This use to work in WSDP 1.1, but now XJC appears to be attempting to
do multiple compilation passes of the included XSD file, once as a file
given directly to XJC and once during include.

Anyone else see this? Feels like a bug to me.

--
Brian Hannan
Chief Admiral of Uncle Jam's Navy
"One nation under a groove, gettin' down just for the FUNK of it."