Hi there,

I notice that bug has been registered (#645) and is currently in discussion
about a problem with XSL.  I got the same bug today, so I thought I'd give
you some more info...

Hope I can help shed some light on the situation.

Cheers,

Marty


I am running JDK1.3, ANT 1.3 Beta 2, JUnit 3.5 and Xalan 1.2.2.

My classpath looks like this:
C:\Products\Junit3.5\junit.jar;C:\Products\xalan-j_1_2_2\xalan.jar;C:\Products\xalan-j_1_2_2\xerces.jar

My build.xml file basically works on the JUnit source.  It looks as follows:


<project name="junit" default="build" basedir=".">
        <target name="init">
                <mkdir dir="classes" />
                <mkdir dir="reports" />
                <mkdir dir="reports/xml" />
                <mkdir dir="reports/html" />
        </target>

        <target name="test" depends="init">
                <junit printsummary="yes">
                        <classpath>
                                <pathelement location="classes"/>
                        </classpath>
                        <formatter type="xml" />
                        <batchtest todir="./reports/xml">
                                <fileset dir="src">
                                        <include name="**/tests/*.java" />
                                        <exclude name="**/AllTests.java" />
                                </fileset>
                        </batchtest>
                </junit>
                <junitreport todir="./reports/xml">
                        <fileset dir="./reports/xml">
                                <include name="TEST-*.xml"/>
                        </fileset>
                        <report format="frames" todir="./reports/html" />
                </junitreport>
        </target>
</project>


When I run the command "ant test", I get the following:


Buildfile: build.xml

init:

test:
    [junit] Running junit.tests.ActiveTestTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.941 sec
    [junit] Running junit.tests.AssertTest
    [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.ClassLoaderTest
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.02 sec
    [junit] TEST junit.tests.ClassLoaderTest FAILED
    [junit] Running junit.tests.ExceptionTestCaseTest
    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.ExtensionTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.03 sec
    [junit] Running junit.tests.Failure
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec
    [junit] TEST junit.tests.Failure FAILED
    [junit] Running junit.tests.InheritedTestCase
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.LoadedFromJar
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec
    [junit] TEST junit.tests.LoadedFromJar FAILED
    [junit] Running junit.tests.NoTestCaseClass
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.01 sec
    [junit] TEST junit.tests.NoTestCaseClass FAILED
    [junit] Running junit.tests.NoTestCases
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
    [junit] TEST junit.tests.NoTestCases FAILED
    [junit] Running junit.tests.NotPublicTestCase
    [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 0.01 sec
    [junit] TEST junit.tests.NotPublicTestCase FAILED
    [junit] Running junit.tests.NotVoidTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running junit.tests.OneTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running junit.tests.OverrideTestCase
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running junit.tests.RepeatedTestTest
    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running junit.tests.SorterTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.02 sec
    [junit] Running junit.tests.StackFilterTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.03 sec
    [junit] TEST junit.tests.StackFilterTest FAILED
    [junit] Running junit.tests.Success
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0 sec
    [junit] Running junit.tests.SuiteTest
    [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.06 sec
    [junit] Running junit.tests.TestCaseClassLoaderTest
    [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.04 sec
    [junit] TEST junit.tests.TestCaseClassLoaderTest FAILED
    [junit] Running junit.tests.TestCaseTest
    [junit] Tests run: 10, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.TestImplementorTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.TestListenerTest
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
    [junit] Running junit.tests.TextRunnerTest
    [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 5.878 sec
    [junit] TEST junit.tests.TextRunnerTest FAILED
    [junit] Running junit.tests.WasRun
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0 sec
    [junit] TEST junit.tests.WasRun FAILED
XSL Error: Cannot use a DTMLiaison for a input DOM node... pass a org.apache.xalan.xpath.xdom.XercesLiaison instead!
XSL Error: SAX Exception
org.apache.xalan.xslt.XSLProcessorException:
        at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1799)
        at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1691)
        at org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:919)
        at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:643)
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:454)
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createPackageList(AggregateTransformer.java:304)

        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:233)
        at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:169)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

BUILD FAILED

C:\Projects\JUnit\build.xml:37: Errors while applying transformations
--- Nested Exception ---
org.apache.xalan.xslt.XSLProcessorException:
        at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1799)
        at org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1691)
        at org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:919)
        at org.apache.xalan.xslt.XSLTEngineImpl.process(XSLTEngineImpl.java:643)
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:454)
        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.createPackageList(AggregateTransformer.java:304)

        at org.apache.tools.ant.taskdefs.optional.junit.AggregateTransformer.transform(AggregateTransformer.java:233)
        at org.apache.tools.ant.taskdefs.optional.junit.XMLResultAggregator.execute(XMLResultAggregator.java:169)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 11 seconds