You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Kyle Adams <ka...@gfs.com> on 2001/09/12 20:15:43 UTC

FactoryConfigurationError

I'm getting an uninformative error message that I've never seen before.  It pops up before any tasks are executed, which makes sense, since it seems to be choking on the XML.  I'm guessing it's something insignificant (and bound to make me feel stupid).

Here's the error message:

javax.xml.parsers.FactoryConfigurationError: com.sun.xml.parser.SAXParserFactoryImpl
        at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:79)
        at org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.java:706)
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:105)
        at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
        at org.apache.tools.ant.Main.runBuild(Main.java:403)
        at org.apache.tools.ant.Main.main(Main.java:149)

Here's my java class path (as reported by -debug):

D:\jdk1.3\lib\tools.jar;
d:\dev\tools\ant\lib\optional.jar;
d:\dev\tools\ant\lib\NetComponents.jar;
d:\dev\tools\ant\lib\jaxp.jar;
d:\dev\tools\ant\lib\crimson.jar;
d:\dev\tools\ant\lib\ant.jar;
D:\jdk1.3\lib\tools.jar;
D:\jdk1.3\lib\dt.jar;
D:\jdk1.3\lib\rt.jar

I get this even on the simplest test script:

<?xml version="1.0" encoding="utf-8"?>
<project name="Hello world" default="hi" basedir=".">
    <target name="hi">
        <echo message="Hello, world!"/>
    </target>
</project>