Hi, I am trying to use JAXB for converting my xsd into a java objects. These Objects can be used for Building XML doucment,which can be further used for sending through output stream. I am getting following error when i ran xjx.bat file:
C:\eChase_Components_1\WSTest\WSTest\test>D:\Sun\jwsdp-1.5\jaxb\bin\xjc -p test rsi.xsd parsing a schema... [ERROR] A class/interface with the same name "test.AccountType" is already in u e. Use a class customization to resolve this conflict. line 3846 of rsi.xsd
This error could appear when you create in your xsd file : 1�/ 'XXX' xsd class 2�/ 'XXXType' xsd class.
When trying to compile the xsd file : 1�/ For your 'XXX' xsd class, a 'XXX.java' file will be created, and also a 'XXXType.java'. 2�/ For your 'XXXType' xsd class, the 'XXXType.java' file will could not be created. Already created on the first step.
Replace XXX by 'Account'. I hope this could help.
Fabrice. SALTO Consulting [ March 31, 2005: Message edited by: Fabrice PIERRE - SALTO Consulting ]