Apparently as Stefan thought, the context classloader on junit was breaking
things.
I have commented the offended line for now.

If did not debug anything for now but at first sight I don't get why the
classloader is not referring to the parent classloader to load xerces
classes (which should be the AntClassLoader classloader which should be the
System classloader.) I'm more than certainly missing a step here.

Any ideas welcome.

[...]
>     [junit] Testcase: 
> testUpdatesExistingProperties(org.apache.tools.ant.taskdefs.op
> tional.PropertyFileTest):     Caused an ERROR
>     [junit] org.apache.xerces.parsers.StandardParserConfiguration
>     [junit] java.lang.ClassCastException: 
> org.apache.xerces.parsers.StandardParserConfiguration
>     [junit]   at 
> org.apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>     [junit]   at 
> org.apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
>     [junit]   at 
> org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unkno
> wn Source)
>     [junit]   at 
> org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:119)
>     [junit]   at 
> org.apache.tools.ant.ProjectHelper.configureProject(ProjectHel
> per.java:99)
>     [junit]   at 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to