The new stylesheet used in <junitreport> doesn't work with Java 1.4.1/Xalan 2.2; it complains about a missing 'redirect' class. It works fine with Java 1.4.2, and with Xalan 2.6. Upgrading Xalan 2.6 is a litte tricky; see http://xml.apache.org/xalan- j/faq.html#faq-N100CC for details on how to do it.
It's indeed extremely annoying but unfortunately there is not much to do as we had to take a decision to support Xalan as bundled in the upcoming JDK 1.5 and I could not find a way to support both kind of directives. See PR 27541 for more information You can however specify the deprecated xsl in ${ant.home}/etc/junit-frames- xalan1.xsl I had a quick look at Xalan CVS, and looks like the new namespace was used starting from Xalan 2.4.1 (and JDK 1.4.2-01): http://cvs.apache.org/viewcvs.cgi/xml- xalan/java/src/org/apache/xalan/lib/Redirect.java
This was more a suggestion to update the doco; it was rather surprising to stumble over it. The release notes, for example, made it clear that Xalan 1 was not supported, but doesn't say that earlier versions of Xalan 2 won't work either. Given the two workarounds (update Xalan or use the old stylesheet) I see no reason to try and make it work with Xalan 2.2, but I do recommend the doco be updated.
The reason it is not in the doc is simple. We did not know about it as apparently everyone involved with this fix was running 1.4.2.01+ and it is extremely painful and time consuming to support dozen of versions of products that are not backward compatible. I have updated the docs in CVS to give more information though. Thanks.
*** Bug 30524 has been marked as a duplicate of this bug. ***