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
Any advice\help will be highly appreciated
Joined: Mar 06, 2005
It seems u already having test package in your application.Mention Work location directory explicitly(other than ur Apllication).
xjc -p test rsi.xsd <worklocationdir>
Still u are getting the error just check with the JDK version and Schema.
Fabrice PIERRE - SALTO Consulting
Joined: Mar 27, 2005
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 ]