Bug#334919: ant 1.6.5 fails on custom task, where ant 1.6.2 succeeded.

Wolfgang Baer WBaer at gmx.de
Thu Oct 20 19:54:55 UTC 2005


Hi Eric,

this is definitly not a bug in ant but in your package. I will leave the bug
open until it is fixed. Please test the comments below:

Eric Lavarde wrote:
> BUILD FAILED
> /home/ericl/freemind-0.8.0/freemind/build.xml:71: The following error occurred while executing this line:
> java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange

This class is and was never part of ant - its a xml api class provided by
several packages in debian (libxerces2-java, libgnujaxp-java, libjaxp1.2-java)

Looking at your build file you seem to use the one from libgnujaxp-java
(gnujaxp entry below).

> DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar xercesImpl gnujaxp

But your control file doesn't include this build-dep so it is not available as
you can see by the ant command in the output.

Suggested (not tested) fix:

Either use jaxp-1.2 as you build-dep on libjaxp1.2-java
or use xmlParserAPIs (the jar which is included in the libxerces2-java package)

Another fix - build-depend on libgnujaxp-java to satisfy gnujaxp jar. However
IMHO this would be bad as this introduces just one more build-dep which is not
needed.

Please test it and close the bug if it fixes this. Otherwise I will
have a look somewhere next week.

Regards,
Wolfgang




More information about the pkg-java-maintainers mailing list