• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JAXB Error

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Thanks,
Amit
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.

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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic