The FactoryConfigurationError tells me that your XML parser is not set up in 
the classpath properly.  Try adding a <pathelement> pointing to the location 
of your xerces.jar or crimson.jar and see if that works.


On Tuesday 13 November 2001 11:51 pm, you wrote:
> Hello,
>
> I'm trying to automise our Junit tests with Ant. Taht works but 'they' want
> a report every morning of the tests that ran during the night. I saw that
> there are some report tools for tests but I can't get them running. I'm
> using junit3.7. Here is a sample opf my build.xml
>
> <target name="facade_tests" depends="testsuite">
>       <junit printsummary="no">
>       <classpath>
>                       <pathelement path="${myenv.MY_JAVA_CLASSES}"/>
>                       <pathelement path="${myenv.CLASSPATH}"/>
>                       <pathelement
> location="${myenv.ANT_HOME}/lib/optional.jar"/>
>                       <pathelement
> location="${myenv.ANT_HOME}/lib/ant.jar"/>
>               </classpath>
>
>       <batchtest fork="yes" todir="/home/integrator/.tests_output">
>          <formatter type="xml"></formatter>
>          <fileset dir="${destdir}">
>               <include
> name="**/test/**/suites/FacadeTests.class"></include>
>       </fileset>
>       </batchtest>
>     </junit>
> </target>
>
>
> I get the following errors when I try to run this target
>
> facade_tests:
>     [junit] Exception in thread "main"
> javax.xml.parsers.FactoryConfigurationError:
> com.sun.xml.parser.DocumentBuilderFactoryImpl
>     [junit]   at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory
>. java:80)
>     [junit]   at
> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.getDoc
>u mentBuilder(XMLJUnitResultFormatter.java:81)
>     [junit]   at
> org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter.startT
>e stSuite(XMLJUnitResultFormatter.java:124)
>     [junit]   at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.fireStartTestS
>u ite(JUnitTestRunner.java:279)    [junit]     at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestR
>u nner.java:200)
>     [junit]   at
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTest
>R unner.java:342)
>     [junit] TEST com.siemens.square.test.suites.FacadeTests FAILED
>
> BUILD SUCCESSFUL
>
> Does anybody have any idea what I'm doing wrong ?
>
>
> Thanks
> Erik

-- 
Furthermore, I believe bacon prevents hair loss.

Peter Davis
Developer, Speaklink Inc.
[EMAIL PROTECTED]

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

Reply via email to