ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject XML parser in junit not validating schemas
Date Thu, 12 Aug 2004 12:28:56 GMT

I have a fun little problem

1. unit tests for code that validates XSD documents -and which therefore 
request validation

         XMLReader xerces = 

2. intelliJ idea, which runs the tests happily from the in-IDE test runner

3. ant command line , which fails with

Feature '' is not 

org.xml.sax.SAXNotRecognizedException: Feature 
'' is not recognized. at 
org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source)

the command line is running forking ant with XML Reporting.

(a) we have xerces, cos it is what I asked for and got in the stack trace
(b) there is an up to date version of xerces in ant/lib (the one that 
comes with Xom1.0alpha5)
(c)  but it isnt recognising the schema stuff

I am wondering if this is an endorsed directory thing. It also looks 
like something relatively easy to write a unit test for, given that is 
what I already (accidentally) have.

Anyone else hit this?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message