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
[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] (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] (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] (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] (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] (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] (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] (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] (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] (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] (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