error two declarations cause a collision in the objectfactory class

3.62K viewsException
0
0 Comments

Getting below error ,please give me solution.

Error while generating the JAXB class from XSD.

parsing a schema…
compiling a schema…
[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 4175 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] (Related to above error) This is the other declaration.
line 4118 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 4181 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] (Related to above error) This is the other declaration.
line 4182 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 4189 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] (Related to above error) This is the other declaration.
line 4190 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 4372 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] (Related to above error) This is the other declaration.
line 4371 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 4109 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] (Related to above error) This is the other declaration.
line 4110 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] Two declarations cause a collision in the ObjectFactory class.
line 1762 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

[ERROR] (Related to above error) This is the other declaration.
line 1705 of file:/D:/Services/SpiceJet-module/src/main/resources/xsd/BookingManager/BookingManager_1.xsd

Failed to produce code.

Manohar Changed status to publish August 19, 2019
Add a Comment
Write your answer.