aspose file tools*
The moose likes XML and Related Technologies and the fly likes JAXB Class Customization of XML SimpleTypes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB Class Customization of XML SimpleTypes" Watch "JAXB Class Customization of XML SimpleTypes" New topic
Author

JAXB Class Customization of XML SimpleTypes

Duran Harris
Ranch Hand

Joined: Nov 09, 2008
Posts: 598

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?


===>SCJP 1.5(72%)<===
==>SCWCD1.5(76%)<===
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 464
    
    2
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...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB Class Customization of XML SimpleTypes
 
Similar Threads
invalid element extension for package name customization
General question on JAXB annotations generated when using xjc
Wsimport and jaxb binding issue
How to add JAXB customization to a particular element of an xsd?
Top-Down approach: WSDL, JAX-WS and JAXB