You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Kevin Regan <ke...@valicert.com> on 2000/06/21 00:46:00 UTC

bug in javax.xml.parsers.SAXParserFactory?

I've been trying to use Xerces 1.1.1 with Ant and am getting the
following
error when doing a build:

Starting Ant...

Buildfile: build.xml
Exception in thread "main" javax.xml.parsers.FactoryConfigurationError:
Cannot load class SAXParserFactory class
"org.apache.xerces.jaxp.SAXParserFactoryImpl"
        at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:153
)
        at
org.apache.tools.ant.ProjectHelper.getParserFactory(ProjectHelper.java:5
13)
        at
org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:102)
        at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:8
6)
        at org.apache.tools.ant.Main.runBuild(Main.java:228)
        at org.apache.tools.ant.Main.main(Main.java:191)

It seems that the class javax.xml.parsers.SAXParserFactory wants to
use the class:

org.apache.xerces.jaxp.SAXParserFactoryImpl

as its implementation class, but the implementation class does
not exists in the Xerces JAR file.  Was the org.apache.xerces.jaxp
package not included in the xerces.jar file?

Thanks,
Kevin Regan
kevinr@valicert.com