Dear colleagues,
When compiling my schema I am getting the dreaded xjc error:
[ERROR] compiler was unable to honor this annotate customization. It is
attached to a wrong place, or its inconsistent with other bindings.
There is no stack trace or underlying error.
My scenario is quite complex involving annox, jpa and other layers.
I would like to get to the underlying error and therefor need to debug
xjc code and therfor need to build latest JAXB 2 from source.
I checked out code based on instructions here:
<
https://jaxb2-sources.dev.java.net/>
When I run "ant dist" I get an NPE:
BUILD FAILED
/home/najmi/jvnet/jaxb-ri/build.xml:91: The following error occurred
while executing this line:
/home/najmi/jvnet/jaxb-ri/runtime/build.xml:179:
java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.tools.ant.Project.fireMessageLoggedEvent(Project.java:2143)
at org.apache.tools.ant.Project.fireMessageLogged(Project.java:2208)
at org.apache.tools.ant.Project.log(Project.java:439)
at org.apache.tools.ant.Project.log(Project.java:428)
at com.sun.tools.txw2.AntErrorListener.print(AntErrorListener.java:51)
at com.sun.tools.txw2.AntErrorListener.error(AntErrorListener.java:39)
at com.sun.tools.txw2.Main.run(Main.java:192)
at com.sun.tools.txw2.Main.run(Main.java:179)
at com.sun.tools.txw2.TxwTask.execute(TxwTask.java:155)
I am using JDK 6. My JDK version is:
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)
Can any one help me build JAXB 2 sources?
Any hints on how to debug underlying cause of the "compiler was unable
to honor this annotate customization" error?
TIA for your help.
--
Regards,
Farrukh Najmi
Web: http://www.wellfleetsoftware.com