Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB Class Customization of XML SimpleTypes

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I am currently using the maven-jaxb plugin to generate Java classes from XML schemas, but I am running into naming collisions in the object factory.
I managed to get around this problem by applying class customizations in the bindings file.

Now, this works perfectly if I am applying the bindings to a ComplexType but if I try apply customizations to a SimpleType XJC gives me the following error :


SAXParseException2: compiler was unable to honor this class customization. It is attached to a wrong place, or its inconsistent with other bindings.

What am I doing wrong?
 
g tsuji
Ranch Hand
Posts: 672
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SAXParseException2: compiler was unable to honor this class customization. It is attached to a wrong place, or its inconsistent with other bindings.
What am I doing wrong?

The error message determines two causes for you...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic