Details
-
Type:
Defect
-
Status:
Closed
-
Resolution: Declined
-
Affects Version/s: None
-
Fix Version/s: Backlog
-
Component/s: None
-
Labels:None
Description
SAXParserFactoryImpl seems to be AWOL while clojure unit tests are running, but is present when clojure is started from the command line. WTF?
(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=>
Converted from http://www.assembla.com/spaces/clojure/tickets/409
Attachments:
show-409-on-oberon.txt - https://www.assembla.com/spaces/clojure/documents/aSijYaMmCr35jQeJe5cbLr/download/aSijYaMmCr35jQeJe5cbLr