Try including the latest Xalan jar ( xalan-2.4.1.jar ) in JAVA_HOME/jre/lib/endorsed (create the "endorsed" directory if it doesn't exist). If you are using something less than j2sdk1.4.x, put it in ANT_HOME/lib. Now try it. I've never had a problem with it.

Jake

At 03:27 PM 12/8/2002 -0500, you wrote:
Hi,

I have seen exactly this error on our automated build machine running Ant
1.5.1.  The weird thing is, it doesn't happen every time.  And it never
happens on my laptop when I run Ant myself.  I haven't looked into it yet
except to see that line 134 the XSL file; it invokes a custom XSL function:

<redirect:write file="{$output.dir}/{$package.dir}/{@name}.html">

Which is mapped in the XSL page to this class:

xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"

The only thing that jumps out there, but doesn't seem to really explain
anything, is that in the xalan.jar file, the Redirect class is actually in
org.apache.xalan.lib.Redirect.  Doesn't explain why it works sometimes and
not others, though.

Scott Stirling

> -----Original Message-----
> From: Woo, Chen Ching [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 06, 2002 3:36 PM
> To: Ant Users List
> Subject: help! junitreport xslt error
>
>
> Has anyone seen the following error before ? All my unittest run
> successfully, but the generated report has bad links to the
> individual test's report details. I tried Ant 1.5 and Ant 1.5.1,
> but to no-avail.
>
> [junitreport] Using Xalan version: Xalan Java 2.2.D11
> [runservertests]
> jar:file:/D:/ant1.5.1/lib/optional.jar!/org/apache/tools/ant/taskd
> efs/optional/junit/xsl/junit-frames.xsl; Line 134; Column 74;
> java.lang.reflect.InvocationTargetException
>
> thanks.
>
> chen



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

Reply via email to