users@jaxb.java.net

Re: Unable to include schema with no target namespace

From: Ed Mooney <Ed.Mooney_at_sun.com>
Date: Fri, 23 May 2003 15:52:56 -0400

Hi Rocky,

The fix will be in the next release of the Java WSDP. Workaround is to
supply the target namespace:

     http://developer.java.sun.com/developer/bugParade/bugs/4849659.html

Regards,
--
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
Rocky Jain wrote:
> On Fri, 11 Apr 2003 14:55:39 -0600, Gerry Plummer <gerry_at_TELOQUENT.COM> wrote:
>
>
>>On Sun, 9 Feb 2003 17:02:26 -0700, Ellis Brover <ellis.brover_at_TOYOTA.COM.AU> wrote:
>>
>>
>>>On Tue, 28 Jan 2003 07:35:49 -0800, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM> wrote:
>>>
>>>
>>>>Could you send your schema to us so that we can see what's happening?
>>>
>>>It's extremely simple to simulate, a minimal schema will do it.
>>>
>>>For example, create a file "including.xsd" as follows:
>>>
>>><?xml version="1.0" encoding="UTF-8"?>
>>><xsd:schema targetNamespace="something" xmlns="something" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>><xsd:include schemaLocation="included.xsd"/>
>>><xsd:element name="Element1" type="xsd:string"/>
>>></xsd:schema>
>>>
>>>Now create a file "included.xsd" as follows:
>>>
>>><?xml version="1.0" encoding="UTF-8"?>
>>><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>>><xsd:element name="Element2" type="xsd:string"/>
>>></xsd:schema>
>>>
>>>Now run "xjc including.xsd". You will get:
>>>
>>>The target namespace of the included schema "" doesnt agree with the expected value "{1}"
>>> line 3 of included.xsd
>>>
>>>Regards,
>>>Ellis.
>>
>>Can anyone tell me if the chameleon schema include problem described in this thread was fixed in JAXB 1.0? I have never seen a resolution and it appears that we are in fact experiencing the same problem.
>>
>>It would be good to know if there is intention to fix this.
>>
>>Thanks
>
>
>
> It's been a couple of months since there has been any activity along this thread.  Has a resolution been reached?
>
> I am having the same problem, and would like to know if there is a way that I can get around it.
>
> Rocky