dev@jaxb.java.net

Re: ActiveSOAP now supports JAXB 2.0

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Tue, 03 May 2005 13:27:12 -0400

I don't think so. But is it fishy that the collisions occur between
names in the schema being compiled and its targetNamespace
(http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd)?

   -- Ed

Kohsuke Kawaguchi wrote:
> Ed Mooney wrote:
>
>> The three schemas I grabbed from:
>>
>> http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wsn
>>
>> use URLs for namespaces and result in naming collisions if you try to
>> compile them in a single xjc invocation.
>
>
> Is that because the namespace URI -> package name conversion truncates
> file name portion (and therefore coerce those three URIs into the same
> package?)
>
> > I was able to compile them like
>
>> this:
>>
>> for x in *.xsd;do xjc.sh -host webcache.east -port 8080 $x;done
>>
>> and compile the bindings like this:
>>
>> javac `find org -name '*.java'`
>>
>> -- Ed


cd c:/JAXB2.0/jaxb-sqe/data/oasis/
. $SANDBOX/dot/jaxb2.0;java com.sun.tools.xjc.Driver -host webcache.east -port 8080 *.xsd
parsing a schema...
[ERROR] 'TopicExpressionType' is already defined
  line 53 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 45 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'TopicExpression' is already defined
  line 53 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 53 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'Topic' is already defined
  line 57 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 57 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'FixedTopicSet' is already defined
  line 59 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 59 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'TopicExpressionDialects' is already defined
  line 61 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 61 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'ConsumerReference' is already defined
  line 65 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 65 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'UseNotify' is already defined
  line 67 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 67 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'Precondition' is already defined
  line 69 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 69 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'Selector' is already defined
  line 71 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 71 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'SubscriptionPolicy' is already defined
  line 73 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 73 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] 'CreationTime' is already defined
  line 75 of http://docs.oasis-open.org/wsn/2004/06/wsn-WS-BaseNotification-1.2-draft-01.xsd

[ERROR] (related to above error) the first definition appears here
  line 75 of file:/C:/JAXB2.0/jaxb-sqe/data/oasis/wsn-WS-BaseNotification-1.2-draft-01.xsd

Failed to parse a schema.

Compilation finished at Tue May 03 13:14:39