Hi,
jaxb-ri-20090206 ...
Hereafter attached is an XSD from which I can't generate java classes. I
have customized bindings to avoid naming conflicts, but there are still
collisions in the ObjectFactory. The strange thing about this is that
apparently similar bindings (binding.xjb line 99 and line 87) produce
different results: the former fixes the ObjectFactory conflict, while the
latter does not. I've tried to debug this. The problem comes from the
instantiation of CElementInfo, but I can't find out why it is performed in
some cases (is it linked to yet unresolved references ?), but not in all
cases.
I attach:
1 ) The binding,
2 ) The XSD
3 ) The error log
Thanks in advance for any help.
Loïc
C:\jaxb-ri-20090206\samples\rapid>xjc -b binding.xjb work.xsd
parsing a schema...
compiling a schema...
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1241 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] (Related to above error) This is the other declaration.
line 1392 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1428 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] (Related to above error) This is the other declaration.
line 1253 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 2203 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] (Related to above error) This is the other declaration.
line 2167 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 2049 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] (Related to above error) This is the other declaration.
line 2124 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1550 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] (Related to above error) This is the other declaration.
line 1592 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1629 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] (Related to above error) This is the other declaration.
line 1665 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1942 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] (Related to above error) This is the other declaration.
line 2020 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 2037 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
[ERROR] (Related to above error) This is the other declaration.
line 2041 of file:/C:/jaxb-ri-20090206/samples/rapid/work.xsd
Failed to produce code.
- application/octet-stream attachment: work.xsd