users@jaxb.java.net

[ERROR] *blank* is already defined - xjc parse error

From: Greg Kick <gk5885_at_kickstyle.net>
Date: Wed, 16 Feb 2005 02:34:26 -0800

I'm trying to use xjc to parse a schema that begins:

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://www.ggf.org/namespaces/ws-agreement"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"
xmlns:wsbf="http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseFaults"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
        <xs:import namespace="http://www.w3.org/2001/XMLSchema"
schemaLocation="http://www.w3.org/2001/XMLSchema.xsd"/>
        <xs:import
namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing"
schemaLocation="http://schemas.xmlsoap.org/ws/2003/03/addressing"/>
        <xs:import
namespace="http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseFaults"
schemaLocation="http://www-106.ibm.com/developerworks/library/ws-
resource/WS-BaseFaults.xsd"/>

with another that begins:

<?xml version="1.0" encoding="UTF-8"?>
   <xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://www.ggf.org/namespaces/ws-agreement"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"
xmlns:wsbf="http://www.ibm.com/xmlns/stdwip/web-services/WS-BaseFaults"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

when I try to parse it I get:

[ERROR] 'gDay' is already defined
   line 1608 of XMLSchema.xsd

[ERROR] (related to above error) the first definition appears here
   line 97 of datatypes.xsd

for pretty much every data type defined in XMLSchema.xsd. What bothers
me is that I have backtracked through every import in every file and I
can't find any reference to datatypes.xsd (i would imagine because
everything is defined in XMLSchema.xsd). Does anybody know what's
causing this and/or how to fix it? Thanks.

Greg Kick
gk5885_at_kickstyle.net