We're updating the issue view to help you get more done. 

SAXParserFactoryImpl is missing at unit testing time

Description

SAXParserFactoryImpl seems to be AWOL while clojure unit tests are running, but is present when clojure is started from the command line. WTF?

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 (ns clojure.test-clojure.clojure-xml (:use clojure.test) (:import [javax.xml.parsers SAXParserFactory]) (:require [clojure.xml :as xml])) (deftest sax-parser-factory-is-not-awol (is (SAXParserFactory/newInstance))) </code></pre> <pre><code>Tell ant to run the unit tests: $ ant test And get the following exception: ERROR in (sax-parser-factory-is-not-awol) (SAXParserFactory.java:134) expected: (SAXParserFactory/newInstance) actual: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found at javax.xml.parsers.SAXParserFactory.newInstance (SAXParserFactory.java:134) clojure.test_clojure.clojure_xml/fn (clojure_xml.clj:17) Yet, when I run clojure from the command line and do the same thing, all is well. $ java -jar clojure.jar Clojure 1.2.0-beta1 user=> (import 'javax.xml.parsers.SAXParserFactory) javax.xml.parsers.SAXParserFactory user=> (SAXParserFactory/newInstance) #<SAXParserFactoryImpl org.apache.xerces.jaxp.SAXParserFactoryImpl@19381960> user=>

See also:
http://github.com/bpsm/clojure/commits/409show

Environment

None

Status

Assignee

Unassigned

Reporter

import

Labels

None

Approval

None

Patch

None

Fix versions

Priority