You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by re...@yahoo.com on 2009/01/30 00:37:36 UTC
"NoSuchMethodError: com.sun.xml.bind.DatatypeConverterImpl" exception when running XJC task
Hi. I'm getting
java.lang.NoSuchMethodError: com.sun.xml.bind.DatatypeConverterImpl._parseInteger(Ljava/lang/CharSequence;)Ljava/math/BigInteger;
My ant file is
<project default="compile">
<taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
<classpath>
<fileset dir="jaxb-ri/lib">
<include name="jaxb-xjc.jar" />
<include name="jaxb-impl.jar" />
</fileset>
</classpath>
</taskdef>
<target name="compile">
<mkdir dir="gen-src" />
<xjc schema="src/spinoff.xsd" package="mytest" destdir="gen-src">
<produces dir="gen-src" includes="**/*.java" />
</xjc>
</target>
</project>
It's strange, because jaxb-impl.jar does contain
com.sun.xml.bind.DatatypeConverterImpl._parseInteger
I also tried
<classpath>
<fileset dir="jaxb-ri/lib" includes="*.jar"/>
</classpath>
as in the samples, but get the same error.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org