https://bugzilla.redhat.com/show_bug.cgi?id=838711
--- Comment #7 from Mikolaj Izdebski <mizdebsk(a)redhat.com> ---
Looks like Ant is failing when it uses Xerces SAX parser, but if xerces-j2
package is erased then Ant works fine with OpenJDK internal parser.
$ cat build.xml
<project/>
$ java -Djaxp.debug=1 -cp /usr/share/java/ant-launcher.jar
org.apache.tools.ant.launch.Launcher
Buildfile: /tmp/build.xml
JAXP: find factoryId =javax.xml.parsers.SAXParserFactory
JAXP: found jar resource=META-INF/services/javax.xml.parsers.SAXParserFactory
using ClassLoader: java.net.URLClassLoader@73a2335d
JAXP: found in resource, value=org.apache.xerces.jaxp.SAXParserFactoryImpl
JAXP: created new instance of class org.apache.xerces.jaxp.SAXParserFactoryImpl
using ClassLoader: java.net.URLClassLoader@73a2335d
BUILD FAILED
/tmp/build.xml:1: Unexpected element "{}HTML" {antlib:org.apache.tools.ant}HTML
Total time: 0 seconds
# rpm -e xerces-j2 --nodeps
$ java -Djaxp.debug=1 -cp /usr/share/java/ant-launcher.jar
org.apache.tools.ant.launch.Launcher
Buildfile: /tmp/build.xml
JAXP: find factoryId =javax.xml.parsers.SAXParserFactory
JAXP: loaded from fallback value:
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
JAXP: created new instance of class
com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl using ClassLoader:
null
BUILD SUCCESSFUL
Total time: 0 seconds
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=MvL95mf3ZH&a=cc_unsubscribe